Class Reference
IRIS for UNIX 2019.3
InterSystems: The power behind what matters   
Documentation  Search
  [ENSLIB] >  [%ZEN] >  [Component] >  [text]
Private  Storage   

class %ZEN.Component.text extends control

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

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 6 2


Summary

Properties
%condition %import %includeFiles %page
%resource align autocomplete aux
clientType composite containerStyle controlClass
controlStyle dataBinding disabled dragEnabled
dropEnabled enclosingClass enclosingStyle error
height hidden hint hintClass
hintStyle id index inputtype
invalid invalidMessage label labelClass
labelDisabledClass labelStyle maxlength name
onafterdrag onbeforedrag onblur onchange
onclick ondblclick ondrag ondrop
onfocus onhide onkeydown onkeypress
onkeyup onmousedown onmouseout onmouseover
onmouseup onrefresh onshow onsubmit
ontouchend ontouchmove ontouchstart onupdate
onvalidate originalValue parent placeholder
readOnly required requiredMessage showLabel
size slice spellcheck tabIndex
title tuple valign value
visible width window

Methods
%AddToSaveSet %Attr %BindExport %ClassIsLatestVersion
%ClassName %ConstructClone %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty
%DispatchSetProperty %DrawComponentHTML %DrawHTML %DrawJSStrings
%EnclosingDivId %Eval %EvalC %Extends
%ForceClientRender %GetEventHandlers %GetForm %GetParameter
%GetXMLName %IsA %IsModified %MakeId
%Name %New %NormalizeObject %ObjectModified
%OnAddToPageAfter %OnAddToPageBefore %OnDrawEnclosingDiv %OnDrawObjectProperties
%OnObjectSynch %OnZENDeserialize %OriginalNamespace %PackageName
%QuoteValue %QuoteValueL10N %RemoveFromSaveSet %Self
%SerializeObject %SetDefaultValues %SetModified %ValidateObject
XMLDTD XMLExport XMLExportToStream XMLExportToString
XMLNew XMLSchema XMLSchemaNamespace XMLSchemaType
dragFinishHandler dragHandler dragNotifyHandler dragStartHandler
dropHandler dropStartHandler exposeComponent findElement
fireOnUpdateEvent focus formatValue getDisabled
getDragData getEnclosingDiv getForm getHidden
getHintElement getInvalidReason getLabelElement getProperty
getReadOnly getSettings getType getValue
invokeSuper isModified isOfType isValid
makeId normalizeValue onCreate onDelete
onDisplayHandler onEndModalHandler onPopupAction onRefreshContents
onSerialize onStartModalHandler onchangeHandler onloadHandler
onunloadHandler onupdateHandler refreshContents render
renderContents renderSVG select setDisabled
setHidden setOverlayMode setProperty setReadOnly
setValue startProgressBar stopProgressBar sysName
unformatValue validationHandler

Subclasses
%ZEN.Component.abstractComboBox %ZEN.Component.password

Parameters

• parameter DEFAULTCONTROLCLASS = "text";
The default css class used for the main element within this control. This is overridden by subclasses.

Properties

• 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.

Methods

• 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.


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.