Documentation - Modal Component

pull/16196/head
Aaron Cawte 6 years ago
parent a3c10d7f04
commit 1a0bac944b

@ -11,7 +11,7 @@ title:
## en-US
Asynchronously close a modal dialog when a user clicked OK button, for example,
Asynchronously close a modal dialog when a the OK button is pressed. For example,
you can use this pattern when you submit a form.
````jsx

@ -11,7 +11,7 @@ title:
## en-US
Passing `okButtonProps` and `cancelButtonProps` can customize the ok button and cancel button props.
Passing `okButtonProps` and `cancelButtonProps` will customize the OK button and cancel button props.
````jsx
import { Modal, Button } from 'antd';

@ -11,7 +11,7 @@ title:
## en-US
To use `confirm()` to popup confirmation modal dialog. Let onCancel/onOk function return a promise object to
Use `confirm()` to show a confirmation modal dialog. Let onCancel/onOk function return a promise object to
delay closing the dialog.
````jsx

@ -11,7 +11,7 @@ title:
## en-US
`Modal.destroyAll()` could destroy all confirmation modal dialogs. Usually, you can use it in router change event to destroy confirm modal dialog automatically
`Modal.destroyAll()` will destroy all confirmation modal dialogs. Usually, you can use it in router change event to destroy confirm modal dialog automatically.
```jsx
import { Modal, Button } from 'antd';

@ -11,7 +11,7 @@ title:
## en-US
To use `confirm()` to popup a confirmation modal dialog.
Use `confirm()` to show a confirmation modal dialog.
````jsx
import { Modal, Button } from 'antd';

@ -13,8 +13,8 @@ title:
## en-US
A more complex example which define a customized footer button bar,
the dialog will change to loading state after clicking submit button, when the loading is over,
A more complex example which define a customized footer button bar.
The dialog will change to loading state after clicking the submit button, and when the loading is done,
the modal dialog will be closed.
You could set `footer` to `null` if you don't need default footer buttons.

@ -11,7 +11,7 @@ title:
## en-US
Manually updateing and destroying a modal from `Modal.method`.
Manually updating and destroying a modal from `Modal.method`.
````jsx
import { Modal, Button } from 'antd';

Loading…
Cancel
Save