Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
|
Fires:
- event:select
Members
-
list of items in falldown box
-
Whether dropdown box is showing
-
returns current value (or array of values)
Methods
-
load falldown on all elements with the proper className
Name Type Default Description className
string falldown type convert
-
clear all selections
-
close falldown box
-
force selection of options based on value (clearing the remaining options)
Name Type Description input
* or array of values to select
-
get index (or list of indices) for selected value(s)
Returns:
(number|number[]) -
open falldown box
-
remove selected option
Name Type Description index
number -
select option by index
Name Type Description index
number -
select option by HTML
Name Type Description name
string -
toggle the falldown box open or closed
Type Definitions
-
Properties:
Name Type Description value
* html
string to display
Events
-
fires when the selection of the falldown changes
Type:
- object
Properties:
Name Type Description changed
FallDownElement value
* array of values (for option.multiple) or value of selected item
falldown
FallDown FallDown element