SMART datagrid v.1 > Classes

Back  Forward

DataLudi.LineCellEditor  class

Single line text editor. 

When setting column editor, it will specify type as "line". If do not separately specify column editor, this editor object will be used. 

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
        },
        ...
    },
        ...
    ];
    
    // You can also directly specify in column level.
    column.setEditor({
        type: "line",
        maxLength: 20
    });
See Also
MultiLineCellEditor
DropDownCellEditor
Examples
Text Cell Editors