Dijit Validation Widgets
First Name:
TextBox class,
tabIndex=2
, Attributes: {trim: true, propercase: true, style: 'width:700px'}, First letter of each word is upper case.
onChange:
Last Name:
TextBox class, Attributes: {trim: true, uppercase: true, class: 'verylong'}, all letters converted to upper case.
Age:
NumberTextBox class,
tabIndex=1
, Attributes: {trim: true}, no initial value specified.
Occupation:
ValidationTextBox class, Attributes: {lowercase: true, required: true, class: verylong, style: font-size: 15pt;}. Displays a prompt message if field is missing.
Elevation:
IntegerTextBox class, Attributes: {required: true, min:-20000, max:+20000 }, Enter feet above sea level with a sign.
onChange:
Annual Income:
CurrencyTextBox class, Attributes: {fractional: true}. Enter whole and cents. Currency symbol is optional.
USD onChange:
euro currency (local format) fractional part is optional:
EUR
euro currency (fixed lang: de-de) programmatically created, fractional part is optional:
EUR
Regular Expression
RegexpTextBox class, Attributes: {required: true}
Password
(just a test that type attribute is obeyed)
Trac ticket 1651:
value: null should show up as empty
view data