SMART datagrid v.1 > Classes > CellEditor

Back  Forward

DataLudi.CellEditor.emptyValue  property

当提交由空字符串或空白所构成的字符串的输入时,将会替代undefined而被储存的值。 

默认值为undefined.

Getter
function emptyValue(): *
Setter
function setEmptyValue(value: *)
Code -1
    grid.setColumns([{
        editor: {
            type: "number",
            emptyValue: 0
        }
    }, {
        editor: {
            type: "line",
            emptyValue: 'NA'
        }
    },
    ...
    ]
See Also
booleanFormat
datetimeFormat
Examples
数字编辑器