# 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
##### 基础属性
| 参数    | 说明           | 类型  | 可选值 | 默认值
| :------ |:-------------  | :-----| :----|:----
| iconWidth | 图标宽度  |   number|  — |  null    |
| iconHeight    |   图标高度    |    number|  —  | null |


## 对外方法
| 名称     | 说明                           |  回调参数     
| :------ |:-------------                  | :-----   


---