Skip to main content


deprecated class %ZEN.Component.label extends %ZEN.Component.control

Simple label control. A label passively displays a static text value. The value of the label is submitted along with other controls on a form.

Method Inventory


parameter DEFAULTCONTROLCLASS = labelText;
Inherited description: The default css class used for the main element within this control. This is overridden by subclasses.


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.
method %SetDefaultValues()
This method fills in reasonable default values for this control. Used by tools (such as Control Tester) to dynamically create controls.
clientmethod getProperty(property, key) as %String [ Language = javascript ]
Override to get current value of control.
clientmethod onSerialize() [ Language = javascript ]
Inherited description: This is called when the client serializes this object.
This gives us a chance to make sure that the value property is updated to have the current value displayed within the control. This version will take care of this for native controls. Custom controls must either ensure that the value property matches the current value of the control or override this method.
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