SMART datagrid v.1 > Classes > CellEditor

Back  Forward

DataLudi.CellEditor.emptyValue  property

The value which will be stored instead of undefined when committing the input with string composed of empty string or blank. 

Defaults to 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
Number Editor