DropDown

(esrith/amos/core/DropDown)

DropDown widget displays a list of values or choices for user to choose upon clicking on a button to a show drop-down list.

Description
creates
Type Description
maxHeight String | Number

The max height for dropdown. Any dropdown taller than this value will have a scrollbar.

Return type Description
appendBottomDropDown(node) None

Add item to bottom node.

appendDropDown(node) None

Add item to a drop-down list as the last child of the node.

clearBottomDropDown() None

Clear bottom node in drop-down.

clearDropDown() None

Clear items in drop-down list.

hideDropDown() None

Hide drop-down list.

showDropDown(winBox) None

Show drop-down list.

toggleDropDown() Boolean

Toggle between hide() and show() a drop-down list.

constants Detail
Properties Detail
<String | Number>
maxHeight

The max height for dropdown. Any dropdown taller than this value will have a scrollbar.

Default value: 200

Methods Detail
appendBottomDropDown
(
  • node
)

Add item to bottom node.

Parameters
  • <DOMNode> node Required

    item which you add

appendDropDown
(
  • node
)

Add item to a drop-down list as the last child of the node.

Parameters
  • <DOMNode> node Required

    item which you add

clearBottomDropDown
()

Clear bottom node in drop-down.

clearDropDown
()

Clear items in drop-down list.

hideDropDown
()

Hide drop-down list.

showDropDown
(
  • winBox
)

Show drop-down list.

Parameters
  • <Object> winBox Required

    size of drop-down area

<Boolean>
toggleDropDown
()

Toggle between hide() and show() a drop-down list.