Is there any documentation for the “Dojo constraint language” or “constraint object”?

StackOverflow https://stackoverflow.com//questions/23022160

  •  21-12-2019
  •  | 
  •  

Question

In the documentation for the Dojo NumberTextBox, the wording makes reference to the "Dojo Constraint language" and even includes a helpful link. Unfortunately the link goes to a page which says only this document has been deprecated. Not very helpful.

This "constraint language" or "constraint object" is used extensively in Dojo but doesn't seem to be documented anywhere in any comprehensive form.

Does anybody know if such documentation exists?

Was it helpful?

Solution

The best way to know what's available in the Dojo constraints is by using the API documentation. If you look at the API documentation of the dijit/form/NumberTextBox, you will notice that in the tree on the left side you can click it open and see an object called __Constraints.

Another thing you could do with deprecated docs is change the version of it in the URL, so for your page it would become: http://dojotoolkit.org/reference-guide/1.7/quickstart/numbersDates.html#quickstart-numbersdates.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top