Selecttime (value of widget)

From JRapid

Jump to: navigation, search

selecttime is a value of widget.

Contents

Description

The selecttime widget provides an input widget for properties of time type.

This widget is formed by two HTML select elements that allow the user to enter hour and minute values. The select inputs represent the time in a HH:mm format.

Usage

<property
    ...
    type="time"
    widget="selecttime" 
/>

Examples

Using this widget is as simple as setting the widget attribute for a property of type time.

 <entity label="Appointment" name="Appointment">
        <property display="primary" label="Name" name="name"/>
        <property label="Time" name="appTime" type="time" widget="selecttime"/>
 </entity>

And the form is generated with the proper input control.

Widget selecttime example‎

See also

Personal tools