behavior: time

Time input behavior.

Example:

<input type="time" name="time1" value="14:15:00" />

Time input is sensitive to current user' locale settings, e.g. it will use localized names like “AM”/“PM” (if they are used in given locale at all).

Elements

that have this behavior applied by default (see master style sheet):

  • <input type=“time” /> - inline single line
  • <widget type=“time”></widget>

Attributes

that this behavior knows about:

  • value=“HH:MM:SS” or value=“now” - initial value (time) of the input element. “now” will set value to current system time. HH is a number in the range 0..23.
  • no-seconds - if provided the input element does not have seconds sub-field. Value always have seconds set to zero.

Events

Together with the standard set of events (mouse, keyboard, focus) behavior: date generates:

  • EDIT_VALUE_CHANGING, EDIT_VALUE_CHANGED events.

Value

of type json::value::T_DATE (Date in Sciter).

Special key combinations

See masked

Model

After initialization (event: attached) of the behavior it creates following DOM structure:

  • input - element this behavior attached to,
    • caption - editing portion of the element, has behavior:masked-edit attached,
    • button.minus - button, decrement field,
    • button.plus - button, increment field.
h-smile/built-in-behaviors/time.txt · Last modified: 2009/11/28 17:00 by andrew
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0