SMART datagrid v.1 > Classes > NumberCellEditor

Back  Forward

DataLudi.NumberCellEditor.maxDigits  property

The maximum number of decimal places which can be entered. 

If specify as less than 0, you will not be able to input '.' character. If the default value is NaN, there will be no limit. And, when the editor is being displayed, it will not force to update the existing text. 

Defaults to NaN.

Getter
function maxDigits(): Integer
Setter
function setMaxDigits(value: Integer)
Code -1
    var columns = [{
        editor: {
            type: "number",
            maxDigits: 0
            minValue: 0,
            maxValue: 100
        }
    }, 
    ...
    ];
See Also
positiveOnly
scientific
minValue
maxValue
Examples
Number Cell Editor
Cell Editing