I need to make validation pass only for integer value in a NumberTextBox
.
Using the following code, entering a decimal value in the NumberTextBox
54.454 wrongly validates.
I would like to know:
- How to validate only a
integer
values? - Is it possible to avoid the user entering the
.
?
https://jsfiddle.net/9Lh3p0fb/7/
require(["dijit/form/NumberTextBox", "dojo/domReady!"], function(NumberTextBox){
new NumberTextBox({
name: "programmatic",
constraints: {pattern: '@@@'}
}, "programmatic").startup();
});