API
Public methods and their functionality.
Last updated
Public methods and their functionality.
Last updated
Container for scroll snap pages.
Axis of the pages. Can be set Horizontal or Vertical.
Align the start of the pages to the top or to the bottom of the Content.
Align the start of the pages to the left side or to the right side of the Content.
Size of the side areas in pixels to scroll out of the first and the last pages. Used for giving an elastic feeling to the scrollable area.
Scroll out margins are shown with orange gizmos on the ScrollSnap component. Changing the value of it will be reflected immediately to let you know how far you can scroll out. The default value is 100 pixels.
The size of the center area in pixels which is necessary for activating the snap. If the next page enters this range page will snap. The default value is 200 pixels.
The snap area is shown with blue gizmos on the ScrollSnap component. Changing the value of it will be reflected immediately to let you know when snap will be active. The default value is 200 pixels.
Speed of the snap after swipe gesture stops. The min value is 0 and the max value is 1.
Index of the current page in the Content.
Amount of the scroll from 0 to the number of pages.
The Event is called when the page changes. Gives the changed index as a parameter to the callback.
Width of the ScrollSnap page.
Height of the ScrollSnap page.
Resets the page size and position. Should be called if the page count is changed during runtime.
Scroll Snap Infinite is a separate component for infinite scroll ability. API of this class is almost identical to the ScrollSnap component. However, it does not have the ScrollOutMargin variable since it is not needed.
Index Table is a helper component that creates radio button-like behavior for switching pages. Buttons on it are auto-generated for the number of pages in the Scroll Snap component. It can only be used with the Scroll Snap component and not with infinite scroll.
The parent Scroll Snap component, that the Index Table will work with.
The size of the Toggle by height.
The padding between the buttons of the Index Table.