单行文本编辑器。
当设置列editor时,将会把type指定为"line"。 如果没有另行指定列编辑器,就会使用这个编辑器对象。
grid.setColumns([
...
{
fieldName: "fld0",
editor: {
type: "line",
maxLength: 20
},
...
},
...
];
// 也可以在列级别直接指定。
column.setEditor({
type: "line",
maxLength: 20
});