Login Register

dijit.form.TimeTextBox

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'}"/>

How to use min and max in TimeTextBox?

I want to know how i can use min and max in the constraints of an TimeTextBox?

Following does not work:

<input type="text" name="time" value="T09:00:00"
                dojoType="dijit.form.TimeTextBox"
                constraints="{ min:'T09:00:00', max:'T10:00:00' }"
                required="true"
                />
Syndicate content