new InputElementRadio(tag)
Parameters:
Name | Type | Description |
---|---|---|
tag |
string | The name and id of this object. |
- Source:
Extends
Methods
-
appendTo(parent)
-
Appends the derived object and any label to a DOM node
Parameters:
Name Type Description parent
Object The DOM element to which this is added - Inherited From:
- Source:
-
disable()
-
Disables the object
- Inherited From:
- Source:
-
enable()
-
Enables the object
- Inherited From:
- Source:
-
onChange(listener)
-
Attaches an onchange handler to the object
Parameters:
Name Type Description listener
function The event listener to add - Inherited From:
- Source:
-
onClick(listener)
-
Attaches an onclick handler to the object
Parameters:
Name Type Description listener
function The event listener to add - Inherited From:
- Source:
-
setLabel(text)
-
Sets the text for the associated label.
Parameters:
Name Type Description text
string The label for the including object. - Inherited From:
- Source:
-
setTextAlign(text)
-
Sets the text alignment for the associated label. Default is left.
Parameters:
Name Type Description text
string The desired alignment, either 'left' or 'right' - Inherited From:
- Source:
-
setValue(value)
-
Assigns a value to a Radio object
Parameters:
Name Type Description value
mixed The value of this object. - Source: