1.0.7 • Published 10 years ago
mdl-form-radio v1.0.7
Radio for mdl-form
Start
Install package:
npm install mdl-form mdl-form-radio react jqueryYou need to see mdl-form.
Parameter
style-> change styleclassName-> classitem-> array of radiosstyle-> change the style of this radiovalue-> this radio valuelabel-> name of this radioisChecked-> if you useisChecked: true, it will be checked.
isNotRequire-> if you useisNotRequire: true, it can be empty.change(function) -> you can do something when radio is click.1stargument is this component value.
Example
{
'id': 'component_id',
'className': 'class',
'item': [
{
'style': {'color': 'red'},
'value': '1',
'label': 'radio-0'
},
{
'style': {'color': 'blue'},
'value': '2',
'label': 'radio-1'
}
]
}