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. |
Add item to bottom node.
<DOMNode>
node
|
Required |
item which you add |
Add item to a drop-down list as the last child of the node.
<DOMNode>
node
|
Required |
item which you add |
Clear bottom node in drop-down.
Clear items in drop-down list.
Hide drop-down list.
Show drop-down list.
<Object>
winBox
|
Required |
size of drop-down area |