Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.49 KB

File metadata and controls

61 lines (42 loc) · 1.49 KB

Classes

BaseButtonBaseButton

Button Button按钮类

Button

BaseButton ⇐ BaseButton

Button Button按钮类

Kind: global class
Extends: BaseButton

Button

Kind: global class

new Button(name)

Button 构造函数.

Param Type Description
name string 控件名字

button.setEnabled(bool)

按钮是否可点击

Kind: instance method of Button
Access: public

Param Type Description
bool boolean 按钮是否可点击,取值为true说明可以点击,取值为false不可点击

button.setSelected(bool)

按钮是否要渲染为选中状态

Kind: instance method of Button
Access: public

Param Type Description
bool boolean 按钮是否要渲染为选中状态,取值为true需要渲染为选中状态,取值为false渲染为非选中状态