Skip to main content

%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

Method Inventory

Parameters

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

Properties

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

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

Inherited Methods

Subclasses

FeedbackOpens in a new tab