SMART datagrid v.1 > Classes > NumberCellEditor

Back  Forward

DataLudi.NumberCellEditor.checkMaxValue  property

If it is specified as true and maxValue is not NaN, when the user enters values, it will be limited to not to exceed maxValue. 

The minimum input value is specified by minValue property. When the editor is being displayed, it will not force to update the existing text. 

Defaults to true.

Getter
function checkMaxValue(): Boolean
Setter
function setCheckMaxValue(value: Boolean)
Note
Code -1
    var columns = [{
        editor: {
            type: "number",
            minValue: 0,
            maxValue: 100,
            checkMaxValue: false
        }
    }, 
    ...
    ];
See Also
minValue
maxValue
Examples
Number Cell Editor
Cell Editing