Browse Source

Update docs for checkbox and radio

Update docs with prop "disabled" for Radio, RadioGroup, Checkbox and CheckboxGroup.
pull/6597/head
Harshit Mehrotra 8 years ago
parent
commit
c7c3625899
  1. 2
      components/checkbox/index.en-US.md
  2. 3
      components/radio/index.en-US.md

2
components/checkbox/index.en-US.md

@ -20,6 +20,7 @@ Checkbox.
| checked | Specifies whether the checkbox is selected. | boolean | false |
| defaultChecked | Specifies the initial state: whether or not the checkbox is selected. | boolean | false |
| onChange | The callback function that is triggered when the state changes. | Function(e:Event) | - |
| disabled | Disable checkbox | boolean | | false|
### Checkbox Group
@ -29,3 +30,4 @@ Checkbox.
| value | Used for setting the currently selected value. | string[] | [] |
| options | Specifies options | string[] | [] |
| onChange | The callback function that is triggered when the state changes. | Function(checkedValue) | - |
| disabled | Disable all checkboxes | boolean | | false |

3
components/radio/index.en-US.md

@ -20,7 +20,7 @@ Radio.
| checked | Specifies whether the radio is selected. | boolean | | false |
| defaultChecked | Specifies the initial state: whether or not the radio is selected. | boolean | | false |
| value | According to value for comparison, to determine whether the selected | any | | none |
| disabled | Disable radio | boolean | | false |
### RadioGroup
radio group,wrap a group of `Radio`
@ -32,3 +32,4 @@ radio group,wrap a group of `Radio`。
| defaultValue | Default selected value | any | none | none |
| size | Size, only on radio style | string | `large` `default` `small` | `default` |
| options | set children optional | string[] \| Array<{ label: string value: string disabled?: boolean }> | 无 | 无 |
| disabled | Disable all radio buttons | boolean | | false |
Loading…
Cancel
Save