deprecatedclass %ZEN.Component.text
extends control
Simple text input control.
This is a simple wrapper around the HTML input=text control.
parameter DEFAULTCONTROLCLASS = "text";
The default css class used for the main element within this control. This
is overridden by subclasses.
property autocomplete
as %ZEN.Datatype.string [ InitialExpression = "on" ];
This attribute indicates how the value of the control can be automatically completed by the browser.
property inputtype
as %ZEN.Datatype.string(VALUELIST=",text,email,tel,password,url,search") [ InitialExpression = "text" ];
Allow for alternate types of input controls such as telephone, email etc which give more feedback particularly on mobile devices
property maxlength
as %ZEN.Datatype.integer(MINVAL=0);
Maximum number of characters allowed within the text control.
property placeholder
as %ZEN.Datatype.caption;
Expose placeholder attribute to Zen.
property size
as %ZEN.Datatype.integer(MINVAL=0);
Size of the input area for this text control.
property spellcheck
as %ZEN.Datatype.boolean [ InitialExpression = 1 ];
If true, this control has spellcheck enabled. Assuming this is an HTML5 browser implementation. IE9 does not support this.
method %DrawHTML()
Static HTML display method: draw the BODY of this component
as HTML.
Subclasses implement this in order to render the static HTML
contents of a component.
method setProperty(property, value, value2)
[ Language = javascript ]
Set the value of a named property.