Name

radiobutton — The radio tag provides a simple radio button.

Synopsis

LZX: radiobutton
JavaScript: lz.radiobutton
Type: Class
Access: public
Topic: Components.Laszlo Components
Declared in: lps/components/lz/radio.lzx

Description

The radiobutton class provides a simple two-state button with a text label, for use in radiogroup.

See radiogroup for details on use.

Implements a "radio" button, allows a one-of-many selection when several of these are in a radiogroup. Radiobutton expects its parent to be radiogroup.

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basevaluecomponent » baselistitem » radiobutton

Known Subclasses

Details

Properties (2)

initcomplete
<attribute name="initcomplete" value="0" />
private var initcomplete;
text_y
<attribute name="text_y" type="number" value="${this.rb.height/2 - this._title.height/2}" />
public var text_y : Number;
the y position of the text label. default: centered

Methods (3)

_applystyle()
<method name="_applystyle" args="s" />
private function _applystyle(s);
setHilite()
<method name="setHilite" args="dohilite" />
private function setHilite(dohilite);
_showEnabled()
<method name="_showEnabled" />
private function _showEnabled();

LZX Synopsis

<class name="lz.radiobutton" extends=" lz.baselistitem ">
  <attribute name=" initcomplete " value="0" />
  <attribute name=" text_y " type="number" value="${this.rb.height/2 - this._title.height/2}" />
  <method name=" _applystyle " args="s" />
  <method name=" setHilite " args="dohilite" />
  <method name=" _showEnabled " />
</class>

JavaScript Synopsis

public lz.radiobutton extends  lz.baselistitem  {
  private var initcomplete ;
  public var text_y  : Number;
  prototype private function _applystyle (s);
  prototype private function setHilite (dohilite);
  prototype private function _showEnabled ();
}