# bi.color_chooser

### 选色控件

{% method %}
[source](https://jsfiddle.net/fineui/z4fwweg9/)

{% common %}
```javascript

BI.createWidget({
    type: "bi.color_chooser",
    element: "#wrapper",
    width: 30,
    height: 30
});

```

{% endmethod %}



### 方法

| 方法名           | 说明     | 参数    |
| ------------- | ------ | ----- |
| isViewVisible | 判断是否显示 | —     |
| setValue      | 设置颜色值  | color |
| getValue      | 获取颜色值  | —     |

------