forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
700 B
39 lines
700 B
7 years ago
|
# bi.icon_button
|
||
|
|
||
|
## 图标button,基类[BI.BasicButton](/core/basicButton.md)
|
||
|
|
||
|
{% method %}
|
||
|
[source](https://jsfiddle.net/fineui/g52u14ay/)
|
||
|
|
||
|
{% common %}
|
||
|
```javascript
|
||
|
|
||
|
BI.createWidget({
|
||
|
type: 'bi.icon_button',
|
||
|
cls: "close-ha-font",
|
||
|
width: 20,
|
||
|
height: 20
|
||
|
});
|
||
|
|
||
|
|
||
|
```
|
||
|
|
||
|
{% endmethod %}
|
||
|
|
||
|
## API
|
||
|
##### 基础属性
|
||
|
| 参数 | 说明 | 类型 | 可选值 | 默认值
|
||
|
| :------ |:------------- | :-----| :----|:----
|
||
7 years ago
|
| iconWidth | 图标宽度 | number| — | null |
|
||
|
| iconHeight | 图标高度 | number| — | null |
|
||
7 years ago
|
|
||
|
|
||
|
## 对外方法
|
||
|
| 名称 | 说明 | 回调参数
|
||
|
| :------ |:------------- | :-----
|
||
|
|
||
|
|
||
|
---
|
||
|
|
||
7 years ago
|
|