Classes
Index
Members
Methods
Members
-
<protected, inner> name
-
Properties:
Name Type Description nameObject Controls identifier
-
<protected, inner> defaultOptions
-
Properties:
Name Type Description defaultOptionsObject The default controls options.
-
<protected, inner> position
-
Properties:
Name Type Description positionObject ScrollBar "x" and "y" current positions.
-
<protected, inner> scroller
-
Properties:
Name Type Description scrollerObject Instance of UWA.Controls.Scroller linked to the current Scrollbar.
-
<protected, inner> visible
-
Properties:
Name Type Description visibleBoolean current visibility Scrollbar status.
Methods
-
<inner> init(options)
-
Set the options to the current controls instance, creates observers and elements object
Parameters
Name Type Description optionsObject options hash or a option/value pair.
-
<inner> destroy()
-
Destroy scrollbar instance.
-
<inner> createDebugPixel(position, color, msg, clear)
-
Create Ghost pixel position that is used to avoid bad click events.
Parameters
Name Type Description positionObject position axis/value pair.
colorString pixel color.
msgString debug color.
clearBool if true will remove previous pixel.
-
<inner> buildSkeleton()
-
Build main dom elements.
-
<inner> initEvents()
-
Init main dom events.
-
<inner> handleEvent() → {Boolean}
-
Handle scroller events.
Returns
- false if event should not propagate.
- Type
- Boolean
-
<inner> setSize(scroll, size)
-
Change scrollbar dimensions according to scroller.
Parameters
Name Type Description scrollNumber the width or the height of scroller offset.
sizeNumber the width or the height of scroller.
-
<inner> onScrollInit(event)
-
Invoked when user click on left button or touch the scrollbar area.
Parameters
Name Type Description eventEvent a standart DOM event.
-
<inner> onScrollMove(event)
-
Invoked when user mouse or touch move on the scrollbar area.
Parameters
Name Type Description eventEvent a standart DOM event.
-
<inner> onScrollStop(event)
-
Invoked when user mouse or touch up/end/cancel on the scrollbar area.
Parameters
Name Type Description eventEvent a standart DOM event.
-
<inner> setPosition(x, runtime, hideScrollBars)
-
Scroll scrollbar to position and handle scrollbar position/display.
Parameters
Name Type Description xNumber new scroll position axis position.
runtimeNumber scroll duration.
hideScrollBarsBoolean hide scrollbar during scroll.
-
<inner> onScrollStart()
-
Invoked when scrollbar start moving.
-
<inner> onScrollEnd()
-
Invoked when scrollbar stop moving.
-
<inner> show()
-
Display scrollbar.
-
<inner> hide()
-
Hide scrollbar.