Skip to main content


class %ZEN.Component.text extends %ZEN.Component.control

Simple text input control.
This is a simple wrapper around the HTML input=text control.

Property Inventory

Method Inventory


Inherited description: 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 methods: autocompleteDisplayToLogical(), autocompleteGet(), autocompleteIsValid(), autocompleteLogicalToDisplay(), autocompleteLogicalToOdbc(), autocompleteNormalize(), autocompleteSet()
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 methods: inputtypeDisplayToLogical(), inputtypeGet(), inputtypeIsValid(), inputtypeLogicalToDisplay(), inputtypeLogicalToOdbc(), inputtypeNormalize(), inputtypeSet()
property maxlength as %ZEN.Datatype.integer (MINVAL = 0);
Maximum number of characters allowed within the text control.
Property methods: maxlengthDisplayToLogical(), maxlengthGet(), maxlengthIsValid(), maxlengthLogicalToDisplay(), maxlengthLogicalToOdbc(), maxlengthNormalize(), maxlengthSet()
property placeholder as %ZEN.Datatype.caption;
Expose placeholder attribute to Zen.
Property methods: placeholderDisplayToLogical(), placeholderGet(), placeholderIsValid(), placeholderLogicalToDisplay(), placeholderLogicalToOdbc(), placeholderNormalize(), placeholderSet()
property size as %ZEN.Datatype.integer (MINVAL = 0);
Size of the input area for this text control.
Property methods: sizeDisplayToLogical(), sizeGet(), sizeIsValid(), sizeLogicalToDisplay(), sizeLogicalToOdbc(), sizeNormalize(), sizeSet()
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.
Property methods: spellcheckDisplayToLogical(), spellcheckGet(), spellcheckIsValid(), spellcheckLogicalToDisplay(), spellcheckLogicalToOdbc(), spellcheckLogicalToXSD(), spellcheckNormalize(), spellcheckSet(), spellcheckXSDToLogical()


method %DrawHTML()
Inherited description: 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.
clientmethod setProperty(property, value, value2) [ Language = javascript ]
Set the value of a named property.

Inherited Members

Inherited Properties

Inherited Methods


FeedbackOpens in a new tab