SMART datagrid v.1 > Classes

Back  Forward

DataLudi.LineCellEditor  class

单行文本编辑器。 

当设置列editor时,将会把type指定为"line"。 如果没有另行指定列编辑器,就会使用这个编辑器对象。 

Base Classes
TextCellEditor > CellEditor > EventAware > DLBase
Constructor
function LineCellEditor (grid: GridBase, parentElement: HtmlElement);
Inherited Properties
CellEditor.booleanFormat
CellEditor.datetimeFormat
CellEditor.emptyValue
CellEditor.fontName
CellEditor.fontSize
CellEditor.keyCallback
TextCellEditor.maxLength
TextCellEditor.minLength
TextCellEditor.noHangul
TextCellEditor.text
CellEditor.textCase
Inherited Methods
EventAware.addListener
DLBase.assign
CellEditor.ctor
TextCellEditor.ctor
DLBase.getProperties
DLBase.getProperty
EventAware.removeListener
DLBase.setProperties
DLBase.setProperty
DLBase.toggle

 

Code -1
    grid.setColumns([
        ...
    {
        fieldName: "fld0",
        editor: {
            type: "line",
            maxLength: 20
        },
        ...
    },
        ...
    ];
    
    // 也可以在列级别直接指定。
    column.setEditor({
        type: "line",
        maxLength: 20
    });
See Also
MultiLineCellEditor
DropDownCellEditor
Examples
文本单元格编辑器