Class TKSlidingViewData
Defined in: SlidingView.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
The distance in pixels between the center points of each page, essentially the overall width of each page.
|
|
The elements for the sliding view.
|
|
Indicates whether elements in the sliding view's DOM are added and removed gradually as we browse through it, or all
available in one go, which is the default.
|
|
Whether we loop through pages.
|
|
The number of elements on each side of the selected page.
|
|
Any additional margin in pixels to the right of each page.
|
|
Any additional margin in pixels to the left of each page.
|
Field Detail
{int}
distanceBetweenElements
The distance in pixels between the center points of each page, essentially the overall width of each page.
{Array}
elements
The elements for the sliding view.
{bool}
incrementalLoading
Indicates whether elements in the sliding view's DOM are added and removed gradually as we browse through it, or all
available in one go, which is the default. If you are populating a sliding view with a large amount of content, you should consider setting this property
to
true
in order to ease memory constraints and enhance performance.
{bool}
loops
Whether we loop through pages. Defaults to
false
.
{int}
sideElementsVisible
The number of elements on each side of the selected page. If the
incrementalLoading
property is set to
true
, this specifies the number of elements in the DOM on each side as others beyond that range are removed from the tree. Otherwise, this
specifies the threshold after which elements in either direction from the selected page get the sliding-view-element-hidden
CSS class applied.
{int}
sideOffsetAfter
Any additional margin in pixels to the right of each page.
{int}
sideOffsetBefore
Any additional margin in pixels to the left of each page.