SMART datagrid v.1 > Classes

Back  Forward

DataLudi.MaskCellEditor  class

Single line text editor which can limit input character by specifying input Mask

When setting column editor, it will specify type as "mask"

Base Classes
TextCellEditor > CellEditor > EventAware > DLBase
Properties
fillFromEnd
includeLiterals
includeSeparators
insertMode
mask
maskCallback
stripBegin
stripEnd
stripInner
trimWhenCopy
unmaskCallback
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: "mask",
            mask: 'LLL-000'
        },
        ...
    },
        ...
    ];
    
    // You can also directly specify in column level.
    column.setEditor({
        type: "mask",
        mask: '0000/00/00'
    });
See Also
Edit Mask Overview
Examples
Mask Cell Editor