选择器
eui-tagbox
继承
ComboBoxComponent
用法
<eui-tagbox [(ngModel)]="value" style="width:300px;">
</eui-tagbox>
输入
名称 | 类型 | 描述 | 默认 |
---|---|---|---|
value | any | 字段值 | null |
hasDownArrow | boolean | 定义是否显示向下箭头按钮。 | false |
multiple | boolean | 定义是否支持多个选择。 | true |
limitToList | boolean | 为True时,输入值限制为列出的项。 | false |
tagCss | any |
标签CSS样式。值可以是样式类、内联样式或返回样式类或内联样式的自定义函数。
代码实例: tagCss(row) { if (row.id == 3){ return { background: '#ffd7d7', color: '#c65353' }; } else if (row.id == 4){ return { background: '#b8eecf', color: '#45872c' }; } else { return null; } } |
null |