mdl-form-radio
v1.0.7
Published
radio for mdl-form
Downloads
15
Maintainers
Readme
Radio for mdl-form
Start
Install package:
npm install mdl-form mdl-form-radio react jquery
You 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.1st
argument 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'
}
]
}