Skip to content

feat request: support nzPlacement in nz-menu / nz-submenu #4743

@ccppprogrammer

Description

@ccppprogrammer

What problem does this feature solve?

Currently you cannot create a menu with different placement options, similar to nz-dropdown.

Thus, if you put nz-submenu with nzMode="horizontal", which is located in nz-header, on the right side of the header, nz-submenu goes beyond the visible area.

Example screenshot of the current behavior:

What does the proposed API look like?

nz-submenu of nz-menu in nzMode="horizontal" should support nzPlacement directive with at least bottomLeft and bottomRight values or correctly place sumenu on the screen automatically depending on the current position.

Property Description Type Default
[nzPlacement] placement of pop menu 'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight' 'bottomLeft'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions