Class InputElementRadioGroup
Extends
InputElementWithLabel.
A Radio Button Group object, derived from labeled object
Defined in: inputElement.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
addButton(label, value)
adds a new radio button to the group
|
|
appendTo(parent)
Appends the radio button group and any label to a DOM node
|
|
getButton(index)
Retrieves the radio button specified
|
|
Retrieves the number of radio buttons in the group
|
|
Retrieves the value of the currently selected radio button
|
|
selectButton(index)
Selects one of the buttons under program control
|
- Methods borrowed from class InputElementWithLabel:
- setLabel, setTextAlign
- Methods borrowed from class InputElement:
- disable, enable, onChange, onClick
Class Detail
InputElementRadioGroup(tag)
filterRBG = new InputElementRadioGroup('rbgFilter');
- Parameters:
- {string} tag
- The name and id of this object.
Method Detail
addButton(label, value)
adds a new radio button to the group
- Parameters:
- {string} label
- The label for this radio button
- {mixed} value
- The value to assign to this radio button
appendTo(parent)
Appends the radio button group and any label to a DOM node
- Parameters:
- {DOM element} parent
- The DOM node to which this is added
{object}
getButton(index)
Retrieves the radio button specified
- Parameters:
- {number} index
- The InputElementRadio object to retrieve
- Returns:
- {object} The specified RadioButton object
{number}
getGroupSize()
Retrieves the number of radio buttons in the group
- Returns:
- {number} The number of radio buttons in this group
{mixed}
getSelected()
Retrieves the value of the currently selected radio button
- Returns:
- {mixed} The value of the selected button
selectButton(index)
Selects one of the buttons under program control
- Parameters:
- {number} index
- The radio button to select