date.comp
The Date widget is used for displaying or setting a date.
Input Parameters:
Parameters
The date must be specified in
DD/MM/YYYY
format.
Parameter Name |
Description |
Default Value |
id |
Select ID. |
Undefined. |
description |
Tooltip. |
Empty string. |
value |
change read/write |
Empty string. |
readonly |
can't change state if in readonly mode |
Undefined. |
Examples
Demo
The demo demonstration is available
here.
ReadOnly
here set "readonly => 1" to change state in readonly mode
<h2>Readonly example</h2>
<& /input/date.comp,
id => 'Data',
value => '01/04/2016',
readonly => 1,
onchange => 'alert("New date Data:"+this.get_value());',
description => 'Test ReadOnly',
&>
<br>
Write
here set "readonly => 0" to change state in write mode (or you can remove parameter)
<h2>Write example</h2>
<& /input/date.comp,
id => 'Data1',
value => '1/04/2016',
readonly => 0,
onchange => 'alert("New date Data:"+this.get_value());',
description => 'Test Write Example',
&>