-
[!] Major refactoring. Broken into SliderBase, ClickableRail, and
SliderValueRange classes, and Y.Slider is the product of
Y.Base.build(…) of these. SliderBase is responsible for rendering the UI
and broadcasting slideStart, slideEnd, and thumbMove events.
ClickableRail adds support for clicking on the rail to move the thumb.
SliderValueRange adds support for min, max, and value attributes.
Values are integers ranging from 0 to 100 by default. Base.build() in
different value algorithms or extensions to specialize from SliderBase.
-
[!] railSize attribute renamed to length.
-
[!] maxGutter and minGutter attributes removed. Use CSS and/or apply
manually via slider._dd.con.set('gutter', …);.
-
[!] rail, thumb, thumbImg Node attributes removed, as well as
HTML_PARSER support. Progressive enhancement stems from a value source,
not a markup source. Various progressive enhancement extensions will arrive
in future versions.
-
Sam skin updated and 7 new skins added (sam-dark, round, round-dark,
capsule, capsule-dark, audio, audio-light).
-
New markup and CSS structure including separate shadow image (set to same
image as thumb, positioned via CSS ala sprite.
-
Thumb placement method changed from setXY() and DD positioning methods
to simpler setStyle('left', x) or top for vertical Sliders. Allows
rendering and modifying in hidden containers without the need to syncUI()
when making visible. Still recommended to call syncUI() if rendered off
DOM, but may not be necessary if using Sam skin. YMMV.