Scrollbar

(esrith/amos/container/Scrollbar)

ScrollBar is a graphical control element for moving a viewport to other areas of a page which are hidden because of its size. This ScrollBar widget is for style-customized scrollbar.

Description
Type Description
_styleAttr Object when you want to set style for other node. you can do this by example... _styleAttr:{ style-property:effected-node } this property was effected where this class was inherited and your widget was called by... var widget = new YourWidget({ style:{ style-property:style-value } }); now effected-node in you widget will have style-property = style-value
Return type Description
__baseClassInherit(constructor) None get className from superclass.
hide(elem?) None Hide a specified element. The hidden element will not be displayed at all.
isVisible(elem?) Boolean Return true if the element is visible, otherwise false.
show(elem?) None Display a specified element.
toggle(elem?) None Toggle visibility of a specified element.
Constructors Detail
Properties Detail
<Object>
_styleAttr
when you want to set style for other node. you can do this by example... _styleAttr:{ style-property:effected-node } this property was effected where this class was inherited and your widget was called by... var widget = new YourWidget({ style:{ style-property:style-value } }); now effected-node in you widget will have style-property = style-value

Default value: {}

Methods Detail
__baseClassInherit
(
  • constructor
)
get className from superclass.
Parameters
  • <Object> constructor Required
hide
(
  • elem?
)
Hide a specified element. The hidden element will not be displayed at all.
Parameters
  • <Node> elem Optional
    Specified element to be hidden.
<Boolean>
isVisible
(
  • elem?
)
Return true if the element is visible, otherwise false.
Parameters
  • <Node> elem Optional
    Specified element to be checked. If not specified, domNode of the widget is used instead.
show
(
  • elem?
)
Display a specified element.
Parameters
  • <Node> elem Optional
    Specified element to be displayed.
toggle
(
  • elem?
)
Toggle visibility of a specified element.
Parameters
  • <Node> elem Optional
    Specified element to toggle visibility.