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.
32 lines
504 B
32 lines
504 B
7 years ago
|
# bi.color_chooser
|
||
7 years ago
|
|
||
7 years ago
|
### 选色控件
|
||
|
|
||
|
{% method %}
|
||
7 years ago
|
[source](https://jsfiddle.net/fineui/z4fwweg9/)
|
||
7 years ago
|
|
||
|
{% common %}
|
||
|
```javascript
|
||
|
|
||
|
BI.createWidget({
|
||
7 years ago
|
type: "bi.color_chooser",
|
||
7 years ago
|
element: "#wrapper",
|
||
7 years ago
|
width: 30,
|
||
|
height: 30
|
||
7 years ago
|
});
|
||
|
|
||
|
```
|
||
|
|
||
7 years ago
|
{% endmethod %}
|
||
|
|
||
|
|
||
|
|
||
|
### 方法
|
||
|
|
||
|
| 方法名 | 说明 | 参数 |
|
||
|
| ------------- | ------ | ----- |
|
||
|
| isViewVisible | 判断是否显示 | — |
|
||
|
| setValue | 设置颜色值 | color |
|
||
|
| getValue | 获取颜色值 | — |
|
||
|
|
||
7 years ago
|
------
|