Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub-Menus #3

Closed
isaacplmann opened this issue Apr 3, 2017 · 4 comments
Closed

Sub-Menus #3

isaacplmann opened this issue Apr 3, 2017 · 4 comments

Comments

@isaacplmann
Copy link
Owner

From @AndreAlves10 on March 1, 2017 10:54

Hello @isaacplmann,

Is it possible to create sub-menus? Just like the following:

submenu

I have an angular-cli project, in my Typescript file I have the following:

self.contextMenuService.show.next({
        actions: self.contextMenuItems,
        event: props.event,
        item: props.event.target
      });

And my HTML is like:

<context-menu>
    <template contextMenuItem (execute)="showMessage('Hi, ' + $event.item.name)">
        Say hi!
        <template contextMenuItem (execute)="showMessage('Hi, ' + $event.item.name)">
            Say hi!
        </template>
    </template>
    <template contextMenuItem divider="true"></template>
    <template contextMenuItem let-item (execute)="showMessage($event.item.name + ' said: ' + $event.item.otherProperty)">
        Bye, {{item?.name}}
    </template>
    <template contextMenuItem passive="true">
        Input something: <input type="text">
    </template>
</context-menu>

Thank you!

Copied from original issue: isaacplmann/angular2-contextmenu#52

@isaacplmann
Copy link
Owner Author

Not possible right now. That would be a great feature though. I'd love a pr.

On Mar 1, 2017 5:54 AM, "André Alves" notifications@github.com wrote:

Hello @isaacplmann https://github.com/isaacplmann,

Is it possible to create sub-menus? Just like the following:

[image: submenu]
https://cloud.githubusercontent.com/assets/25454839/23456804/dc093294-fe6c-11e6-9a3a-914a5c0e74be.png

I have an angular-cli project, in my Tipescript file I have the following:

self.contextMenuService.show.next({
actions: self.contextMenuItems,
event: props.event,
item: props.event.target
});

And my HTML is like:

Say hi! Say hi! Bye, {{item?.name}} Input something:

Thank you!


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/isaacplmann/angular2-contextmenu/issues/52, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA0lQNr3Ol3p02uGZ1_fxCsfRyocKNC8ks5rhU5mgaJpZM4MPgI_
.

@isaacplmann
Copy link
Owner Author

From @AndreAlves10 on March 1, 2017 11:6

Ok, thank you @isaacplmann!

@isaacplmann
Copy link
Owner Author

This is now implemented in version 1.2.0

@shomid
Copy link

shomid commented Apr 9, 2021

This is now implemented in version 1.2.0

how to implement ?
is this attrib ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants