继承
LocaleBase
用法
<LinkButton iconCls="icon-add" style={this.style1()}>Add</LinkButton>
<LinkButton iconCls="icon-remove" style={this.style1()}>Remove</LinkButton>
<LinkButton iconCls="icon-save" style={this.style1()}>Save</LinkButton>
<LinkButton iconCls="icon-cut" disabled style={this.style1()}>Cut</LinkButton>
属性
名称 |
类型 |
描述 |
默认 |
disabled |
boolean |
为true时禁用按钮 |
false |
toggle |
boolean |
为true时使用户能够切换选中或未选中状态。 |
false |
selected |
boolean |
定义按钮是否为选中状态。 |
false |
outline |
boolean |
定义是否显示外边框线。 |
false |
plain |
boolean |
为true时显示简单效果 |
false |
iconCls |
string |
在左边显示16x16图标的CSS类。 |
null |
iconAlign |
string |
按钮图标的位置。可选的值: 'left','right','top','bottom'。 |
left |
size |
string |
按钮的大小。可选的值: 'small','large'。 |
small |
text |
string |
按钮文本。 |
null |
事件
名称 |
参数 |
描述 |
onClick |
none |
当按钮点击时触发。 |
方法
名称 |
参数 |
返回值 |
描述 |
focus |
none |
void |
聚焦按钮。 |
blur |
none |
void |
离焦按钮。 |