Test DateTextBox Widget
Date (local format)
DateTextBox class, no attributes
onChange:
set('value',null)
get('value')
.value
Date (local format - long)
DateTextBox class, Attributes: required="true", trim="true", openOnClick=false, constraints={min:'2004-01-01',max:'2006-12-31',formatLength:'long'}. Works for leap years
onChange:
Date (American format)
DateTextBox class, Attributes: lang="en-us", required="true", constraints={min:'2004-01-01',max:'2006-12-31'}. Works for leap years. Prompt message whenever field is blank.
Date (German format)
DateTextBox class, Attributes: lang="de-de", hasDownArrow=false, constraints={min:2004-01-01, max:2006-12-31}. Works for leap years. Prompt message whenever field is blank.
Date, overriding pattern
Date, overriding pattern with dd-MM-yyyy
Using title attrib for label
DateTextBox class, Attributes: lang="en-us", required="true", prompt meessage, invalid message Prompt message whenever field is blank.
Date pairs, from/to (won't submit unless from/to fields filled in correctly):
From:
To:
view data