WTUI Docs

WTUI  1.0.0

WTUI Docs > WTUI > WTUI.DateControl
Search:
 
Filters

Class WTUI.DateControl

A date control

Tag

<wtui:control type="WTUI.DateControl"/>

The tag for WTUI.DateControl

Example:

<wtui:control type="WTUI.DateControl" id="exampleid" />
Parameters:
id <String> (optional) The id of the date control
name <String> (optional) The name of the control if it is used within a form
value <object> (String) (optional) The value of the control

Methods

getValue

String getValue ( )

Get the value

Returns: String
The value of the control (YYYY-MM-DD (YYYY-MM-DD))

reset

void reset ( )

Reset the control to its original value

Returns: void

setValue

void setValue ( value )

Set the value

Example:
WTUIComponent('datecontrolid').setValue('1999-12-31');
Parameters:
value <String> The value in the format YYYY-MM-DD
Returns: void

WTUI