Constructor
new FormSelect(optionsopt)
Constructor
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
object |
<optional> |
- Source:
Extends
Methods
addToSelect(arguments) → {FormSelect}
Add options to the select
Parameters:
Name | Type | Description |
---|---|---|
arguments |
* | Either an object of key/value pairs, where the key is the option value and the value is the string within the tags, or a key and value as two parameters to add one option |
- Source:
Returns:
- Type
- FormSelect
selectOption(val, triggeropt) → {FormSelect}
Select an option
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
val |
string | |||
trigger |
boolean |
<optional> |
true | whether to fire change event |
- Source:
Returns:
- Type
- FormSelect
set(data) → {FormInput}
Set properties from data
and rebuild the template.
Parameters:
Name | Type | Description |
---|---|---|
data |
object |
- Inherited From:
- Source:
Returns:
- Type
- FormInput