.. _dijit/form/TimeTextBox: dijit.form.TimeTextBox ====================== :Status: Draft :Version: 1.0 :Authors: Doug Hays, Nikolai Onken, Marcus Reimann, Craig Riecke :Developers: ?- :Available: since V? .. contents:: :depth: 2 TimeTextBox widgets are time input controls that allow either typing or choosing a time from any time-picker widget. ============ Introduction ============ ``dijit.form.TimeTextBox``: * is a :ref:`mapped form control ` * validates against locale-sepcific :ref:`i18n ` rules * also validates against developer-provided ``constraints`` like ``min``, ``max``, etc. ===== Usage ===== Standard Time Format -------------------- To prevent the ambiguity in specifying time formats, TimeTextBox allows only one time format ``THH:MM:SS`` when specifying times declaritively in HTML markup or when communicating with a server: * T00:00:30 means 30 seconds after midnight * T17:30:00 means 5:30 PM However, when you get the widget's current ``value`` programmatically on the client, the returned value will be the native JavaScript Date object. The date portion of this value should be ignored. ======== Examples ======== Programmatic example -------------------- .. cv-compound:: .. cv:: javascript .. cv:: html Declarative example ------------------- .. cv-compound:: .. cv:: javascript .. cv:: html
string value: ============= Accessibility ============= See the Accessibility Section in :ref:`dijit.form.ValidationTextBox ` The time picker popup associated with the TimeTextBox is not yet fully accessible. However, the TimeTextBox will still meet accessibility requirments as long as the developer provides the validation parameters promptMessage and invalidMessage when creating the TimeTextBox. These messages are implemented in a format that is accessible to all users.