#header-mark#
SelectColors 颜色列表选择器
用于选择、创建颜色列表。
基础用法
输入颜色,可以拖放颜色来重新排序。
可以通过 unique 防止输入重复的颜色。
提供可选项
可以使用 allow_duplicates 属性来定义可选项, 该属性接受一个颜色列表。
SelectColors API
SelectColors 属性
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| v-model/value | 绑定值 | list | — |
| allowed_tags | 可选的颜色列表 | list | — |
| unique | 颜色的值是否唯一 | bool | false |
| style | 自定义css样式 | str | - |
TIP
style 支持的其它css属性
Sizes相关
- height
- width
- max_height
- max_width
- min_height
- min_width
Display相关
- visibility
- display
- overflow
Box model相关
- border
- margin
- padding
Positioning相关
- top
- left
- bottom
- right
Events(暂不支持)
| 事件名 | 说明 | 类型 |
|---|---|---|
| change | 当绑定值变化时触发的事件 | Callable |
SelectColors 方法
| 属性名 | 说明 | 类型 |
|---|
src/examples/ipywui/component/select-colors