Native Input

Qubes 9.0 Native input component with browser-dependent behavior.

This input can be used as an alternative to other XForms inputs.
Preferably used to input or edit a Time, a Date or a Datetime, but supports every input type the browser accepts.
Keep in mind that this is a browser-based input so the user experience may differ, according to their browsing context.

Example :

Google Chrome


FireFox

Properties

PropertyDescription
EnabledBoolean indicating whether or not the component is enabled.
ExtraAttributesCan be filled with extra attributes that you might want to add in a JSON format, the key must be the name of the added attribute and the value will be assigned to it.
HintSpecifies the user hint string that will appear in the component's interactive help bubble.
MaximumMaximum time value allowed. If empty, that means there is no maximum time.
MinimumMinimum time value allowed. If empty, that means there is no minimum time.
TabIndexInteger indicating the component's tab order (Qubes 5.6).
TimeStepIndicates the number of seconds incremented if the user picks time using arrows. For instance 3 will make 3 seconds jumps and 120 will increment minutes 2 by 2.
TypeType of input, for example "time", "date" or "datetime-local"
ValueInitialDetermines the component's initial value when the screen opens and each time it is reset (see Reset Button).
VisibleBoolean indicating whether or not the component will be visible.

Value

The value returned will always be a string, that depends of the type of input.
You can treat it the way you want using formulas (like StrToDateTime) or scripts for example.

Remarks

To set the ValueInitial when Type is :
- "date", the format of the value must be "YYYY-MM-DD" as stated in the documentation.
- "time", the format of the value must be "hh:mm" or "hh:mm:ss" with hours in 24-hours format as stated in the documentation.
- "datetime-local", the format of the value must be "YYYY-MM-DDThh:mm" as stated in the documentation.

ExtraAttributes depends from Type and can be any input's attributes.
Always check the browser compatibility before choosing a type.
Be aware that even if the type is supported by the browsers, its appearance and functionalities can change from browser to browses and even between updates of the same browser.
Do not chose deprecated, non-standard or experimental types as they might be removed anytime soon from the browser support.
Please, check documentation for further details.

Classification

Standards