选择器
eui-grid-column
继承
无
输入
名称 | 类型 | 描述 | 默认 |
---|---|---|---|
field | string | 列字段名。 | null |
title | string | 列标题文本。 | null |
width | any | 列的宽度 | null |
rowspan | number | 指示单元格占用多少行。 | 1 |
colspan | number | 指示单元格应占用多少列。 | 1 |
sortable | boolean | 为True时,允许对列进行排序。 | false |
sorter | Function | 自定义字段排序函数。 | null |
editable | boolean | 为True时,允许对列进行编辑。 | false |
order | string | 默认排序顺序只能是“asc”(升序)或“desc”(降序)。 | asc |
frozen | boolean | 指示是否为冻结列。 | false |
align | string | 指示如何对齐列数据。可以使用:'left','right','center'。 | null |
halign | string | 指示如何对齐列标题。可选的值:'left','right','center'。 如果没有指定,标题对齐与通过“align”属性定义的数据对齐相同。 | null |
expander | boolean | 指示是否展开列。 | false |
headerCls | string | 标题样式类。 | null |
headerStyle | Object | 标题内联样式。 | null |
cellCss | any |
单元格CSS样式。值可以是样式类、内联样式或返回样式类或内联样式的自定义函数.
代码实例: css: (row,value) => { if (value > 100){ return {color:'red'}; } else if (value > 30){ return 'cell_invalid'; } return null; } |
null |
filterable | boolean | 定义是否可以筛选列。 | 为True时, |
filterOperators | string[] | 列上可用的筛选操作符。 | [] |
filterOperator | string | 默认筛选操作符。 | contains |
filterValue | any | 当前筛选器值。 | null |
字段
名称 | 类型 | 描述 |
---|---|---|
headerTemplate | HeaderTemplateDirective | 头模板 |
cellTemplate | CellTemplateDirective | 单元格模板。 |
editTemplate | EditTemplateDirective | 编辑模板 |
footerTemplate | FooterTemplateDirective | 页脚单元格模板。 |
filterTemplate | FilterTemplateDirective | 过滤模板。 |