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
{{ message }}
Repository navigation
Commit f71162b
Browse filesBrowse the repository at this point in the historyBrowse files
|`[nzClosable]`| Whether a close (x) button is visible on top left of the Drawer dialog or not. |`boolean`|`true`|
31
31
|`[nzCloseIcon]`| Custom close icon |`string \| TemplateRef<void> \| null`|`'close'`|
32
32
|`[nzExtra]`| Extra actions area at corner. |`string \| TemplateRef<void> \| null`| - |
33
-
|`[nzMask]`| Whether to show mask or not. |`boolean`|`true`| ✅ |
34
-
|`[nzMaskClosable]`| Clicking on the mask (area outside the Drawer) to close the Drawer or not. |`boolean`|`true`| ✅ |
35
-
|`[nzCloseOnNavigation]`| Whether to close the drawer when the user goes backwards/forwards in history. Note that this usually doesn't include clicking on links (unless the user is using the HashLocationStrategy). |`boolean`|`true`| ✅ |
33
+
|`[nzMask]`| Whether to show mask or not. |`boolean`|`true`| ✅ |
34
+
|`[nzMaskClosable]`| Clicking on the mask (area outside the Drawer) to close the Drawer or not. |`boolean`|`true`| ✅ |
35
+
|`[nzCloseOnNavigation]`| Whether to close the drawer when the user goes backwards/forwards in history. Note that this usually doesn't include clicking on links (unless the user is using the HashLocationStrategy). |`boolean`|`true`| ✅ |
36
36
|`[nzKeyboard]`| Whether support press esc to close |`boolean`|`true`|
37
37
|`[nzMaskStyle]`| Style for Drawer's mask element. |`object`|`{}`|
38
38
|`[nzBodyStyle]`| Body style for drawer body element. Such as height, padding etc. |`object`|`{}`|
@@ -52,24 +52,24 @@ import { NzDrawerModule } from 'ng-zorro-antd/drawer';
| nzContent | The drawer body content. |`TemplateRef<{ $implicit: D, drawerRef: NzDrawerRef }> \| Type<T>`| - |
63
63
| nzContentParams | Deprecated: Use NzData instead. The component inputs the param / The Template context |`D`| - |
64
64
| nzData | Will be a template variable when nzContent is TemplateRef. <br /> object, will be the value of the injection token NZ_MODAL_DATA when nzContent is a component |`D`| - |
65
65
| nzClosable | Whether a close (x) button is visible on top left of the Drawer dialog or not. |`boolean`|`true`|
| nzExtra | Extra actions area at corner. |`string \| TemplateRef<void> \| null`| - |
68
68
| nzOnCancel | Execute when click on the mask or the upper cancel button, This function returns a promise, which is automatically closed when the execution is complete or the promise ends (return false to prevent closing) |`() => Promise<any>`| - |
69
-
| nzMaskClosable | Clicking on the mask (area outside the Drawer) to close the Drawer or not. |`boolean`|`true`| ✅ |
70
-
| nzCloseOnNavigation | Whether to close the drawer when the user goes backwards/forwards in history. Note that this usually doesn't include clicking on links (unless the user is using the HashLocationStrategy). |`boolean`|`true`| ✅ |
71
-
| nzMask | Whether to show mask or not. |`boolean`|`true`| ✅ |
72
-
| nzDirection | Direction of the text in the modal |`'ltr' \| 'rtl'`| - | ✅ |
69
+
| nzMaskClosable | Clicking on the mask (area outside the Drawer) to close the Drawer or not. |`boolean`|`true`| ✅ |
70
+
| nzCloseOnNavigation | Whether to close the drawer when the user goes backwards/forwards in history. Note that this usually doesn't include clicking on links (unless the user is using the HashLocationStrategy). |`boolean`|`true`| ✅ |
71
+
| nzMask | Whether to show mask or not. |`boolean`|`true`| ✅ |
72
+
| nzDirection | Direction of the text in the modal |`'ltr' \| 'rtl'`| - | ✅ |
73
73
| nzKeyboard | Whether support press esc to close |`boolean`|`true`|
74
74
| nzMaskStyle | Style for Drawer's mask element. |`object`|`{}`|
75
75
| nzBodyStyle | Body style for modal body element. Such as height, padding etc. |`object`|`{}`|
@@ -86,22 +86,25 @@ import { NzDrawerModule } from 'ng-zorro-antd/drawer';
86
86
87
87
### NZ_DRAWER_DATA
88
88
89
-
NZ_DRAWER_DATA injection token is used to retrieve nzData in the custom component. The drawer created by the service method NzDrawerService.create() inject a NZ_DRAWER_DATA token (if nzContent is used as Component) to retrieve the parameters that have used to the 'nzContent component'
89
+
NZ_DRAWER_DATA injection token is used to retrieve nzData in the custom component. The drawer created by the service
90
+
method NzDrawerService.create() inject a NZ_DRAWER_DATA token (if nzContent is used as Component) to retrieve the
91
+
parameters that have used to the 'nzContent component'
0 commit comments