SMART datagrid v.1 > Classes

Back  Forward

DataLudi.MultiLineCellEditor  class

複数の行を入出力することができるテキストのエディター。 ユーザーが複数の行の入力をする必要がなかったら 一つの行のエディターを使わなければならない。 

カラムeditorの設定の時type"multiline"に指定する。 

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
        },
        ...
    },
        ...
    ];
    
    // カラム並みで直接指定することもできる。
    column.setEditor({
        type: "multiline",
        maxLength: 2000
    });
See Also
LineCellEditor
Examples
Text Cell Editors