继承
LocaleBase
属性
名称 | 类型 | 描述 | 默认 |
---|---|---|---|
field | string | 列字段名。 | null |
title | string | 列标题文本。 | null |
width | any | 列的宽度。 | null |
rowspan | number | 指示单元格占用多少行。 | 1 |
colspan | number | 指示单元格应占用多少列。 | 1 |
sortable | boolean | 为True时,允许对列进行排序。 | false |
sorter | (value1,value2) | 自定义字段排序函数。 | null |
editable | boolean | 为True时,允许对列进行编辑。 | false |
editor | ({row,column,rowIndex,error}) | 在单元格上呈现编辑器的函数。 | |
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 | string,Object,Function |
单元格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[] | 列上可用的筛选操作符。 | [] |
filter | ({value,column}) | 在标题上呈现筛选器编辑器的函数。 | |
render | ({value,row,rowIndex}) | 渲染主体单元格。 | |
header | (column) | 呈现标题单元格的函数。 | |
footer | ({value,row,rowIndex}) | 呈现页脚单元格的函数。 |