Login Register

constraints

How do I give a TimeTextBox a timePattern constraint containing apostrophes?

I can specify the timePattern constraint on a TimeTextBox as shown in the various examples. But the time pattern I want to specify includes apostrophes. What is the syntax I should use in the html in order to allow dojo to correctly parse this constraint?

The relevant part is timePattern:'HH:mm:ss 'o''clock' z'

<input type="text" id="bla" name="bla" class="bla" dojoType="dijit.form.TimeTextBox" constraints="{timePattern:'HH:mm:ss 'o''clock' z',selector:'time',locale:'en_GB'}"/>

NumberTextBox floating point behavior

Hi,

My first time using dojo and dijit and I am having problems with the behavior of a NumberTextBox widget which I hope someone can help me with. The dijit text box is created entirely with javascript code and what I would like it to do is to allow the user to enter a number between -180 and 180 with, optionally, up to 6 decimal places. Here is what I have :

new dijit.form.NumberTextBox({style:"width: 100px",
promptMessage: "Enter a value between -180 and 180",
rangeMessage: "Longitude out of range",

Changing constraints of a DateTextBox dynamically

Is there a way to change the constraints of a DateTextBox dynamically in a onfocus event ?

I would like to change {min:} attribute so that the dates grayed can be changed dynamically.

Syndicate content