Selectdate (value of widget)

From JRapid

Jump to: navigation, search

selectdate is a value of widget.

Contents

Description

The selectdate widget provides an input widget for properties of date type.

This widget is formed by three HTML select elements that allow the user to enter day, month and year values. The select inputs represent the date in a dd/MM/yyyy format.

By default, the selectdate lists years from 1900 to 2030, but you may use the fromyear and toyear attributes to modify this.

Usage

<property
    ...
    type="date"
    widget="selectdate" 
/>

Examples

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

 <entity label="Delivery" menu="Menu" name="Delivery">
        <property display="primary" label="Name" name="name"/>
        <property label="Date" name="deliveryDate" type="date" widget="selectdate"/>
 </entity>

And the form is generated with the proper input control.

Widget selectdate example‎

See also

Personal tools