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/drawer/doc/index.en-US.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,9 @@ import { NzDrawerModule } from 'ng-zorro-antd/drawer';
24
24
25
25
| Props | Description | Type | Default | Global Config |
26
26
| --- | --- | --- | --- | --- |
27
-
|`[nzClosable]`| Whether a close (x) button is visible on top right of the Drawer dialog or not. |`boolean`|`true`|
27
+
|`[nzClosable]`| Whether a close (x) button is visible on top left of the Drawer dialog or not. |`boolean`|`true`|
28
28
|`[nzCloseIcon]`| Custom close icon |`string \| TemplateRef<void> \| null`|`'close'`|
29
+
|`[nzExtra]`| Extra actions area at corner. |`string \| TemplateRef<void> \| null`| - |
29
30
|`[nzMask]`| Whether to show mask or not. |`boolean`|`true`| ✅ |
30
31
|`[nzMaskClosable]`| Clicking on the mask (area outside the Drawer) to close the Drawer or not. |`boolean`|`true`| ✅ |
31
32
|`[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,8 +37,9 @@ import { NzDrawerModule } from 'ng-zorro-antd/drawer';
36
37
|`[nzFooter]`| The footer for Drawer. |`string \| TemplateRef<void>`| - |
37
38
|`[nzVisible]`| Whether the Drawer dialog is visible or not, you can use `[(nzVisible)]` two-way binding |`boolean`|`false`|
38
39
|`[nzPlacement]`| The placement of the Drawer. |`'top' \| 'right' \| 'bottom' \| 'left'`|`'right'`|
39
-
|`[nzWidth]`| Width of the Drawer dialog, only when placement is `'right'` or `'left'`. |`number \| string`|`256`|
40
-
|`[nzHeight]`| Height of the Drawer dialog, only when placement is `'top'` or `'bottom'`. |`number \| string`|`256`|
40
+
|`[nzSize]`| Preset size of drawer, default `378px` and large `736px`. |`'default' \| 'large'`|`'default'`|
41
+
|`[nzWidth]`| Width of the Drawer dialog, only when placement is `'right'` or `'left'`, having a higher priority than `nzSize`. |`number \| string`| - |
42
+
|`[nzHeight]`| Height of the Drawer dialog, only when placement is `'top'` or `'bottom'`, having a higher priority than `nzSize`. |`number \| string`| - |
41
43
|`[nzOffsetX]`| The the X coordinate offset(px), only when placement is `'right'` or `'left'`. |`number`|`0`|
42
44
|`[nzOffsetY]`| The the Y coordinate offset(px), only when placement is `'top'` or `'bottom'`. |`number`|`0`|
43
45
|`[nzWrapClassName]`| The class name of the container of the Drawer dialog. |`string`| - |
@@ -56,8 +58,9 @@ import { NzDrawerModule } from 'ng-zorro-antd/drawer';
56
58
| --- | --- | --- | --- | --- |
57
59
| nzContent | The drawer body content. |`TemplateRef<{ $implicit: D, drawerRef: NzDrawerRef }> \| Type<T>`| - |
58
60
| nzContentParams | The component inputs the param / The Template context. |`D`| - |
59
-
| nzClosable | Whether a close (x) button is visible on top right of the Drawer dialog or not. |`boolean`|`true`|
61
+
| 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`| - |
61
64
| 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>`| - |
62
65
| nzMaskClosable | Clicking on the mask (area outside the Drawer) to close the Drawer or not. |`boolean`|`true`| ✅ |
63
66
| 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`| ✅ |
@@ -68,8 +71,9 @@ import { NzDrawerModule } from 'ng-zorro-antd/drawer';
68
71
| nzBodyStyle | Body style for modal body element. Such as height, padding etc. |`object`|`{}`|
69
72
| nzTitle | The title for Drawer. |`string \| TemplateRef<void>`| - |
70
73
| nzFooter | The footer for Drawer. |`string \| TemplateRef<void>`| - |
71
-
| nzWidth | Width of the Drawer dialog. |`number \| string`|`256`|
72
-
| nzHeight | Height of the Drawer dialog, only when placement is `'top'` or `'bottom'`. |`number \| string`|`256`|
74
+
| nzSize | Preset size of drawer, default `378px` and large `736px`. |`'default' \| 'large'`|`'default'`|
75
+
| nzWidth | Width of the Drawer dialog, only when placement is `'right'` or `'left'`, having a higher priority than `nzSize`. |`number \| string`| - |
76
+
| nzHeight | Height of the Drawer dialog, only when placement is `'top'` or `'bottom'`, having a higher priority than `nzSize`. |`number \| string`| - |
73
77
| nzWrapClassName | The class name of the container of the Drawer dialog. |`string`| - |
74
78
| nzZIndex| The `z-index` of the Drawer. |`number`|`1000`|
75
79
| nzPlacement | The placement of the Drawer. |`'top' \| 'right' \| 'bottom' \| 'left'`|`'right'`|
0 commit comments