This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > ENSLIB namespace > %ZEN.Component.button

%ZEN.Component.button

class %ZEN.Component.button extends %ZEN.Component.control

Button control.
This is a wrapper around the HTML input=button control.
The text displayed within the button is defined by the caption property. Typically an application will set the onclick property (inherited from the control) of the button to a JavaScript expression that is executed when the user clicks the button.

Property Inventory (Including Private)

Method Inventory (Including Private)

Parameters

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

Properties (Including Private)

property caption as %ZEN.Datatype.caption (ZENEXPRESSION = 1);
Caption displayed for this button.
This is a localized value.
Property methods: captionDisplayToLogical(), captionGet(), captionIsValid(), captionLogicalToDisplay(), captionLogicalToOdbc(), captionNormalize(), captionSet()

Methods (Including Private)

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 setProperty(property, value, value2) [ Language = javascript ]
Set the value of a named property.

Inherited Members

Inherited Properties (Including Private)

Inherited Methods (Including Private)

Subclasses

FeedbackOpens in a new window