ng-zorro-antd icon indicating copy to clipboard operation
ng-zorro-antd copied to clipboard

feat request: add the nzTrigger property for the nz-submenu

Open ccppprogrammer opened this issue 5 years ago • 3 comments

What problem does this feature solve?

In some cases, for example, dropdown menus on header, we need to open submenu only when user clicks on it, and not when hovering, similar to nz-dropdown when nzTrigger property is set to click.

For example such a feature is on youtube or twitch (see pictures below):

What does the proposed API look like?

Property Description Type Default
[nzTrigger] the trigger mode which executes the drop-down action 'click' 'hover' 'hover'

when nzTrigger=hover - current behavior

when nzTrigger=click - open submenu only when user click on it

ccppprogrammer avatar Jan 31 '20 01:01 ccppprogrammer

I would like to see also same option for nz-menu.

TheAifam5 avatar Apr 28 '20 15:04 TheAifam5

I would also want to see this option but for horizontal mode. Seems a missing feature for a basic menu like any menu system you see on your computer now. Any chance of implementing this as last post was 2020. Thanks in advance.

timothyBrake avatar Nov 29 '23 17:11 timothyBrake

I would like to see also same option for nz-menu.

chenweihan avatar Mar 15 '24 02:03 chenweihan