Templarian / ui.bootstrap.contextMenu

AngularJS Bootstrap UI Context Menu
MIT License
259 stars 127 forks source link

Accessing the element #112

Closed jbmyid closed 7 years ago

jbmyid commented 7 years ago

How to access the element which we have added context menu on. No information in the event either.

josetaira commented 7 years ago

In the callback for the click, the second parameter is event. You can get the target from there. If you mean the exact option that was clicked, this is available as the 5th parameter.

jbmyid commented 7 years ago

No in the event target is not available, also 5th option is the li of context menu.

I want the element on which we do right click.

josetaira commented 7 years ago

@jbmyid what are the properties available in the event? Can you post them here?

jbmyid commented 7 years ago

It just gives coordinates

screen shot 2017-07-10 at 10 57 03 am
josetaira commented 7 years ago

The event should now have a "target" which is the element the context menu was on.

jbmyid commented 7 years ago

cool thanks, when will it be available on bower?