You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: components/modal/doc/index.en-US.md
-5
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,6 @@ The dialog is currently divided into 2 modes, `normal mode` and `confirm box mod
56
56
|`nzOnCancel`| Specify a function that will be called when a user clicks mask, close button on top right or Cancel button (If nzContent is Component, the Component instance will be put in as an argument). <i>Note: When created with `NzModalService.create`, this parameter should be passed into the type of function (callback function). This function returns a promise, which is automatically closed when the execution is complete or the promise ends (return `false` to prevent closing)</i> | EventEmitter | - |
57
57
|`nzOnOk`| Specify a EventEmitter that will be emitted when a user clicks the OK button (If nzContent is Component, the Component instance will be put in as an argument). <i>Note: When created with `NzModalService.create`, this parameter should be passed into the type of function (callback function). This function returns a promise, which is automatically closed when the execution is complete or the promise ends (return `false` to prevent closing)</i> | EventEmitter | - |
|`nzComponentParams`| Deprecated, will be removed to the next major version, prefer using nzData. Will be instance property when `nzContent` is a component,will be template variable when `nzContent` is `TemplateRef`|`object`| - |
60
59
|`nzData`| Will be a template variable when `nzContent` is `TemplateRef`|`object`, will be the value of the injection token NZ_MODAL_DATA when `nzContent` is a component| - |
61
60
|`nzIconType`| Icon type of the Icon component. <i>Only valid in confirm box mode</i> |`string`| question-circle |
62
61
|`nzAutofocus`| autofocus and the position,disabled when is `null`|`'ok' \| 'cancel' \| 'auto' \| null`|`'auto'`|
@@ -66,10 +65,6 @@ The dialog is currently divided into 2 modes, `normal mode` and `confirm box mod
66
65
> NZ_MODAL_DATA injection token is used to retrieve `nzData` in the custom component.
67
66
The dialog created by the service method `NzModalService.create()` inject a `NZ_MODAL_DATA` token (if `nzContent` is used as Component) to retrieve the parameters that have used to the '`nzContent` component'
68
67
69
-
#### Attentions
70
-
71
-
> The creation or modification of the `nzComponentParams` property does not trigger the `ngOnChanges` life cycle hook of the `nzContent` component.
72
-
73
68
#### Using service to create Normal Mode modal
74
69
75
70
> You can call `NzModalService.create(options)` to dynamically create **normal mode** modals, where `options` is an object that supports the support given in the API above **normal mode** parameters
0 commit comments