Skip to content

multiple variations of contextMenu #103

@productivityindustries

Description

@productivityindustries

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

If I try to define two different variations of a contextMenu, only the one having name 'contextMenu' will work. The other is ignored.

Expected behavior

Both contextMenus should work.

Minimal reproduction of the problem with instructions

  variations: {
    contextMenu: withContextMenuVariation(popperVariation),
    contextMenuCustom: withContextMenuVariation({...popperVariation, plugins: [myPlugin] }),

What is the motivation / use case for changing the behavior?

In my app I have a page where the content menu should be closed programmatically, through a plugin.
But in the rest of the app, the regular contextMenu variation should be used.

i think it all bolis down to the fact that there can be only one flavor of contextMenu, the one named 'contextMenu': see
https://github.com/ngneat/helipopper/blob/master/projects/ngneat/helipopper/src/lib/tippy.directive.ts#L266

Environment


Angular version: 13


Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions