SMART datagrid v.1 > Classes

Back  Forward

DataLudi.MultiLineCellEditor  class

The text editor which can enter multiple lines. If the user does not need to input multiple rows particularly, he should use Single Line Editor

When setting column editor, it will specify type as "multiline". The user can divide lines by shift+enter keys. 

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

 

Code -1
    grid.setColumns([
        ...
    {
        fieldName: "fld0",
        editor: {
            type: "multiline",
            maxLength: 2000
        },
        ...
    },
        ...
    ];
Code -2
    column.setEditor({
        type: "multiline",
        maxLength: 2000
    });
See Also
LineCellEditor
Examples
Text Cell Editors