EasyUI
RadioGroup
Override defaults with $.fn.radiogroup.defaults.

Dependencies
- radiobutton
Usage
Create radiogroup from markup.
Create radiogroup using javascript.
Properties
Name | Type | Description | Default |
---|---|---|---|
name | string | The field name. | |
value | string | The checked item value. | |
data | array | The data to be loaded. Each item contains 'value','label' and 'disabled' properties. | |
dir | string | The layout direction. Possible values are 'h'(horizontal) or 'v'(vertical). | h |
itemStyle | object | The item style. | {height:30} |
labelWidth | number | The label width. | |
labelPosition | string | The label position. Possible values are:'before','after'. | after |
labelAlign | string | The label alignment. Possible values are:'left','right'. | left |
Events
Name | Parameters | Description |
---|---|---|
onChange | value | Fires when the checked value is changed. |
Methods
Name | Parameter | Description |
---|---|---|
options | none | Return the options object. |
setValue | value | Set the value for the radiogroup. |
getValue | none | Get the checked value. |