new SelectBox()
An general select box widget.
Properties:
Name | Type | Description |
---|---|---|
items |
Array | An array of hash objects that contains value and title info of select box item. Each item of array may have the following fields: {text, value, title, data}. |
index |
Int | Selected index of box items. |
value |
Variant | Selected value of box. |
Extends
Methods
-
clear()
-
Clear all items in box.
-
dropDown()
-
Drop down the selection list of box. NOTE: Can only work in Webkit.
-
selectAll()
-
Select all content in widget.
- Inherited From:
- Source:
Events
-
buttonExecute
-
Invoked when button in widget is executed. Event param of it has field: {widget: this (not button)}
- Inherited From:
- Source:
-
valueChange
-
Invoked when the value of form control element is changed by user. This event will actually be fired when "change" event occurs on form element. Instead of simply "change", the event name is "valueChange" to avoid conflict with change event of ObjectEx. event param of it has field: {widget}
- Inherited From:
- Source: