ConveyerOptions
Type: TSInterface
PROPERTY | TYPE | DEFAULT | DESCRIPTION |
---|---|---|---|
horizontal | boolean | true | scroll direction. (true: Horizontal Scroll, false: Vertical Scroll) |
itemSelector | string | "" | selector to find items inside. |
useDrag | boolean | true | Whether to use drag. |
useSideWheel | boolean | false | Whether to use the mouse wheel in a direction aside from the scroll direction. |
boundaryMargin | number | 0 | The minimum margin space for reachStart, leaveStart, reachEnd, and leaveEnd events to be triggered at the beginning and end of the scroll area. |
scrollDebounce | number | 100 | The maximum amount of time the scroll event does not fire for the finishScroll event to be triggered. |
preventDefault | boolean | true | Whether to prevent being selected. |
preventClickOnDrag | boolean | false | Whether to prevent click event when dragging. |
preventDefaultOnDrag | boolean | false | Whether to use the preventDefault when the user starts dragging. |
autoInit | boolean | true | Whether to automatically initialize when an instance is created. If set to false, initialization is possible while calling the init method. |
nested | boolean | false | If this option is enabled on a Conveyer placed inside an egjs component that has the same scroll direction including the Conveyer itself. The parent component moves in the same direction after the Conveyer reaches the first/last scroll position. |
useResizeObserver | boolean | false | Whether to use the ResizeObserver when resizing the Conveyer element and ConveyerItem elements. |