Skip to main content

%ZEN.Component.radioButton

class %ZEN.Component.radioButton extends %ZEN.Component.control

radio button control.
This provides a wrapper around the HTML input=radio control with some enhanced capabilities.

Property Inventory

Method Inventory

Parameters

parameter DEFAULTCONTROLCLASS = radio;
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);
Additional caption displayed next to actual radio button.
This is a localized value.
Property methods: captionDisplayToLogical(), captionGet(), captionIsValid(), captionLogicalToDisplay(), captionLogicalToOdbc(), captionNormalize(), captionSet()
property captionClass as %ZEN.Datatype.cssClass [ InitialExpression = "radioButtonCaption" ];
CSS class to apply to the control's caption.
Property methods: captionClassDisplayToLogical(), captionClassGet(), captionClassIsValid(), captionClassLogicalToDisplay(), captionClassLogicalToOdbc(), captionClassNormalize(), captionClassSet()
property optionValue as %ZEN.Datatype.value (ZENEXPRESSION = 1);
Defines the value associated with this specific radio button. This is in contrast with the value which defines the value of the entire set of radio buttons.
Property methods: optionValueDisplayToLogical(), optionValueGet(), optionValueIsValid(), optionValueLogicalToDisplay(), optionValueLogicalToOdbc(), optionValueNormalize(), optionValueSet()

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 clickButton() [ Language = javascript ]
User click on radio button.
clientmethod clickCaption() [ Language = javascript ]
User click on caption for radio button; select this button.
clientmethod getProperty(property, key) as %String [ Language = javascript ]
Override to get current value of control.
clientmethod onSerialize() [ Language = javascript ]
Make sure serialization does not mess with our value.
clientmethod setProperty(property, value, value2) [ Language = javascript ]
Set the value of a named property.
method valueSet(%val) as %Status
Setting value of any radio button, sets value for other buttons in the same group.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab