{"action":"opened","issue":{"url":"https://api.github.com/repos/Templarian/ui.bootstrap.contextMenu/issues/43","repository_url":"https://api.github.com/repos/Templarian/ui.bootstrap.contextMenu","labels_url":"https://api.github.com/repos/Templarian/ui.bootstrap.contextMenu/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/Templarian/ui.bootstrap.contextMenu/issues/43/comments","events_url":"https://api.github.com/repos/Templarian/ui.bootstrap.contextMenu/issues/43/events","html_url":"https://github.com/Templarian/ui.bootstrap.contextMenu/issues/43","id":132911754,"number":43,"title":"Allow trigger customization - click or contextmenu","user":{"login":"prasad83","id":99066,"avatar_url":"https://avatars.githubusercontent.com/u/99066?v=3","gravatar_id":"","url":"https://api.github.com/users/prasad83","html_url":"https://github.com/prasad83","followers_url":"https://api.github.com/users/prasad83/followers","following_url":"https://api.github.com/users/prasad83/following{/other_user}","gists_url":"https://api.github.com/users/prasad83/gists{/gist_id}","starred_url":"https://api.github.com/users/prasad83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasad83/subscriptions","organizations_url":"https://api.github.com/users/prasad83/orgs","repos_url":"https://api.github.com/users/prasad83/repos","events_url":"https://api.github.com/users/prasad83/events{/privacy}","received_events_url":"https://api.github.com/users/prasad83/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-11T07:55:49Z","updated_at":"2016-02-11T07:55:49Z","closed_at":null,"body":"Context-menu could be used like dynamic dropdown-menu as well - where click happens on handler.\r\nHaving trigger controlled from element attribute would make it easy.\r\n\r\n```html\r\n<a href=\"javascript:void(0);\" context-menu=\"menuOptions\" context-menu-trigger=\"click\">M</a>\r\n```\r\n\r\n```javascript\r\nreturn function ($scope, element, attrs) {\r\n        var trigger = (attrs.contextMenuTrigger || 'contextmenu'); // <-- Customization\r\n        element.on(trigger, function (event) {\r\n```"}}