SMART datagrid v.1 > Classes > NumberCellEditor

Back  Forward

DataLudi.NumberCellEditor.maxValue  property

If it is not NaN, the value which has been entered in editor will be transferred as less than this property value. 

It specifies the minimum input value by minValue property. And, if specify checkMaxValue as true together with this property, when the user enters values, it will be limited to not to exceed this value. 

When the editor is being displayed, it will not force to update the existing text. 

Defaults to NaN.

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