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
Text Cell Editors