Class idx.form.RadioButtonSet
Extends
dijit._Container, dijit.form._FormSelectWidget, idx.form._CompositeMixin, idx.form._CssStateMixin, idx.form._InputListMixin, idx.form._ValidationMixin.
idx.form.RadioButtonSet is a composit widget which consists of a group of radiobuttons.
RadioButtonSet can be created in the same way of creating a dijit.form.Select control.
NOTE: The "startup" method should be called after a RadioButtonSet is created in Javascript.
In order to get the value of the widget, you don't need to invoke the get("value") method of
each radiobutton anymore, but simply call get("value") method of the RadioButtonSet.
As a composite widget, it also provides following features:
- Built-in label
- Built-in label positioning
- Built-in required attribute
- One UI theme support
Defined in: <idx\form\RadioButtonSet.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Field Summary
Field Attributes | Field Name and Description |
---|---|
- Fields borrowed from class idx.form._CompositeMixin:
- fieldWidth, help, hint, hintPosition, label, labelAlignment, labelWidth, required, unit
- Fields borrowed from class idx.form._ValidationMixin:
- instantValidate, invalidMessage, missingMessage, tooltipPosition
Method Summary
Method Attributes | Method Name and Description |
---|---|
destroy()
|
|
startup(scope)
|
|
validate(isFocused)
|
- Methods borrowed from class idx.form._CompositeMixin:
- _setFieldWidthAttr, _setHintAttr, _setLabelAlignmentAttr, _setLabelAttr, _setLabelWidthAttr, _setRequiredAttr, _setUnitAttr, reset, resize, validateAndFocus
- Methods borrowed from class idx.form._ValidationMixin:
- _isEmpty, _isValid, displayMessage, getErrorMessage, isValid, refocus
Constructor Detail
idx.form.RadioButtonSet()
Programmatic: new idx.form.RadioButtonSet({ options: [ { label: 'foo', value: 'foo', selected: true }, { label: 'bar', value: 'bar' } ] }); Declarative: <select jsId="rbs" data-dojo-type="oneui.form.RadioButtonSet" data-dojo-props=' name="rbs", label="label1", value="foo"'> <option value="foo">foo <option value="bar">bar </select> Store Based: var data = { identifier: "value", label: "label", items: [ {value: "AL", label: "Alabama"}, {value: "AK", label: "Alaska"} ] }; var readStore = new dojo.data.ItemFileReadStore({data: data}); var rbs = new idx.form.RadioButtonSet({ store: readStore });
Field Detail
templateString
Defined in: <idx\form\plugins\phone\RadioButtonSetPlugin.js>.
Method Detail
buildRendering()
destroy()
Defined in: <idx\form\plugins\phone\RadioButtonSetPlugin.js>.
postCreate()
postMixInProperties()
startup(scope)
Defined in: <idx\form\plugins\phone\RadioButtonSetPlugin.js>.
- Parameters:
- scope
validate(isFocused)
- Parameters:
- isFocused