here the code that creates columns array:
Hello Michael,
Thank you for posting in our forum.
The number of digits before the decimal separator could be validated by setting the “maxValue” editor option. For example if you need a maximum of 3 digits, it could be set to “maxValue: 999” – exceeding it would show a validation notification. The number of digits after the decimal separator could be set by enabling the “maxDecimals” option. Here is a sample snippet showing a maximum of 3 digits before the decimal separator and four after it:
{ name: "Updating", editMode: "cell", columnSettings: [ { columnKey: "InStock", editorType: "numeric", editorOptions: { maxDecimals: 4, // 4 digits after the decimal separator maxValue: 999 // 3 digits before the decimal separator } } ] }
Also, the igValidator has many options that allow the user to validate the input with more complex logic – like a custom validation function or regular expressions.
If you need any additional assistance, feel free to contact me.