Jump To:

  1. ui/slider.Slider
    1. slider.defaults
    2. slider.handleResize()
    3. slider.previous()
    4. slider.next()
    5. slider.ensureTransitionEnds(element, duration, beginTransition)
    6. slider.translateTo()
    7. slider.setVisibility()
    8. slider.fadeSlide()
    9. slider.slideTransition()
    10. slider.fadeTransition()
    11. slider.noTransition()
  2. ui/slider.initializer
  3. ui/slider.init()
  4. ui/slider.setupSlider(container, options)

ui/slider

ui/slider.Slider

Class that controls slider

Kind: static class of ui/slider

slider.defaults

Default options for slider

Kind: instance property of Slider

slider.handleResize()

Sliding mechanism needs translate updated on resize

Kind: instance method of Slider

slider.previous()

Goto to the previous slide

Kind: instance method of Slider

slider.next()

Goto to the next slide

Kind: instance method of Slider

slider.ensureTransitionEnds(element, duration, beginTransition)

Makes sure that no matter what the callback is called if transition event doesn't start or fails to finish/cancel

Kind: instance method of Slider

Param Type Description
element number
duration number Duration to wait for complete
beginTransition function Css changes to begin/start transtion

slider.translateTo()

Translate the track to X

Kind: instance method of Slider

slider.setVisibility()

Show's a specifc slide and hides others, except when passing true to show all then all slides will visible

Kind: instance method of Slider

slider.fadeSlide()

Perform a fade on a single slide

Kind: instance method of Slider

slider.slideTransition()

Handler for the entire slide transtion

Kind: instance method of Slider

slider.fadeTransition()

Handler for the entire fade transtion

Kind: instance method of Slider

slider.noTransition()

Handler for the entire NO transtion

Kind: instance method of Slider

ui/slider.initializer

Slider Component Initializer

Kind: static constant of ui/slider

ui/slider.init()

Initialize all sliders based on data attribute selectors

Kind: static method of ui/slider

ui/slider.setupSlider(container, options)

Setup single slider instance from querying via data attribute selectors

Kind: static method of ui/slider

Param Type Description
container Node The slide container to query children from
options Object Options for slider class