ComboBox

Glodon.Bimface.UI.Button. ComboBox

new Glodon.Bimface.UI.Button.ComboBox()

ComboBox 组合框 继承 Control

Methods

addControl(control)

添加选项

Parameters:
Name Type Description
control object

Glodon.Bimface.UI.Button.ComboBoxOptionButton

getControl(id)

获取选项

Parameters:
Name Type Description
id string

选项id

Returns:
Type Description
array

选项

getControl()

获取当前选项

Returns:
Type Description
array

当前选项

getControls()

获取选项列表

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()

切换列表显示状态