I have the following NumberTextBox and i wanted to allow only the digits,but i don't know what is the constraints properties used to make it possible.
<input type="text" data-dojo-type="dijit.form.NumberTextBox" invalidMessage="Please enter only numbers" constraints="{}" required="true"
 
     
    