new ComboBox()
ComboBox 组合框 继承 Control
Methods
addControl(control)
添加选项
Parameters:
| Name | Type | Description |
|---|---|---|
control |
object | Glodon.Bimface.UI.Button.ComboBoxOptionButton |
getControl() → {array}
获取当前选项
Returns:
| Type | Description |
|---|---|
| array |
当前选项 |
getControl(id) → {array}
获取选项
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | 选项id |
Returns:
| Type | Description |
|---|---|
| array |
选项 |
getControls() → {array}
获取选项列表
Returns:
| Type | Description |
|---|---|
| array |
选项列表 |
hideDropDownList()
隐藏列表
removeControl(id)
删除选项
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | 选项id |
setSelectedControlById(id)
设置选中选项
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | 选项id |
showDropDownList()
显示列表
toggleDropDownList()
切换列表显示状态