Class HorizontalScrollElement
Methods
addSlideDeltaValuesToElements
- addSlideDeltaValuesToElements(elementGroups: Array<Array<HTMLElement>>): void
-
Parameters
-
elementGroups: Array<Array<HTMLElement>>
Returns void
calculateChildPositions
- calculateChildPositions(): void
draw
- draw(immediate?: boolean): void
-
Parameters
-
Default value immediate: boolean = false
Returns void
enableSlideDeltaValues
- enableSlideDeltaValues(value: boolean): void
enableSnapToClosest
- enableSnapToClosest(value: boolean): void
findClosestIndexToX
- findClosestIndexToX(x: number): number
-
Parameters
Returns number
setScrollPosition
- setScrollPosition(x: number): void
setTargetX
- setTargetX(x: number): void
slideTo
- slideTo(index: number, instant?: boolean): void
-
Parameters
-
index: number
-
Default value instant: boolean = false
Returns void