SMART datagrid v1.4 > Classes

Back  Forward

DataLudi.MaskCellEditor  class

입력 마스크를 지정해서 입력 문자를 제한할 수 있는 한 줄 텍스트 편집기. 

컬럼 editor 설정 시 type"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
TextCellEditor.ctor
CellEditor.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'
        },
        ...
    },
        ...
    ];
    
    // 컬럼 수준에서 직접 지정할 수도 있다.
    column.setEditor({
        type: "mask",
        mask: '0000/00/00'
    });
See Also
Edit Mask 개요
Examples
Mask Cell Editor