Templarian / ui.bootstrap.contextMenu

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

Ability to Create Multiple Opening Events #99

Closed Aerophite closed 7 years ago

Aerophite commented 7 years ago

I ended up with a use-case where I needed the menu to be able to be opened by either a right or left click. The modifications I've made will allow for any number of open events by allowing you to send a comma delimited list in your html.

For example:

<div ng-repeat="item in items" context-menu="menuOptions" context-menu-on="click,contextmenu">Left and Right Click: {{item.name}}</div>