1.0.7 • Published 8 years ago

mdl-form-radio v1.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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 style
  • className -> class
  • item -> array of radios
    • style -> change the style of this radio
    • value -> this radio value
    • label -> name of this radio
    • isChecked -> if you use isChecked: true, it will be checked.
  • isNotRequire -> if you use isNotRequire: 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'
    }
  ]
}
1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago