forked from ant-design/ant-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: tranlsation of Checkbox (ant-design#2740)
- Loading branch information
Showing
7 changed files
with
85 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
category: Components | ||
type: Form Controls | ||
title: Checkbox | ||
--- | ||
|
||
Checkbox. | ||
|
||
## When To Use | ||
|
||
- Used for selecting multiple values from several options. | ||
- If you use only one checkbox, it is the same as using Switch to toggle between two states. The difference is that Switch will trigger the state change directly, but Checkbox just marks the state as changed and this needs to be submitted. | ||
|
||
## API | ||
|
||
### Checkbox | ||
|
||
| Property | Description | Type | Default | | ||
|----------|------------------|----------|--------| | ||
| 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) | - | | ||
|
||
### Checkbox Group | ||
|
||
| Property | Description | Type | Default | | ||
|----------|------------------|----------|--------| | ||
| defaultValue | Default selected value | Array | [] | | ||
| value | Used for setting the currently selected value. | Array | [] | | ||
| options | Specifies options | Array | [] | | ||
| onChange | The callback function that is triggered when the state changes. | Function(checkedValue) | - | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters