Overview

The Layout component arranges slider elements by setting width, height, margin and padding according to the latest options.

Methods

listSize()

listSize(): number

Returns the list width for the horizontal slider, or the height for the vertical slider.


slideSize()

slideSize( index: number, withoutGap?: boolean ): number

Returns the slide width for the horizontal slider, or the height for the vertical slider.


sliderSize()

sliderSize(): number

Returns the slider size without clones before the first slide.


totalSize()

totalSize( index?: number, withoutGap?: boolean ): number

Returns the total width or height of slides from the head of the slider to the specified index. This includes sizes of clones before the first slide.


getPadding()

getPadding( right: boolean ): number

Returns the padding value.