{"action":"created","issue":{"url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/429","repository_url":"https://api.github.com/repos/swisnl/jQuery-contextMenu","labels_url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/429/labels{/name}","comments_url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/429/comments","events_url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/429/events","html_url":"https://github.com/swisnl/jQuery-contextMenu/issues/429","id":166328083,"number":429,"title":"Asynchronous create sub menu's after context menu has opened.","user":{"login":"Ruud-cb","id":10037514,"avatar_url":"https://avatars.githubusercontent.com/u/10037514?v=3","gravatar_id":"","url":"https://api.github.com/users/Ruud-cb","html_url":"https://github.com/Ruud-cb","followers_url":"https://api.github.com/users/Ruud-cb/followers","following_url":"https://api.github.com/users/Ruud-cb/following{/other_user}","gists_url":"https://api.github.com/users/Ruud-cb/gists{/gist_id}","starred_url":"https://api.github.com/users/Ruud-cb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ruud-cb/subscriptions","organizations_url":"https://api.github.com/users/Ruud-cb/orgs","repos_url":"https://api.github.com/users/Ruud-cb/repos","events_url":"https://api.github.com/users/Ruud-cb/events{/privacy}","received_events_url":"https://api.github.com/users/Ruud-cb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-19T13:14:52Z","updated_at":"2016-07-19T18:38:21Z","closed_at":null,"body":"Hi,\r\n\r\nI've been searching the past 2 days for a perfect context menu, this one and another one stand out above all others. To put it in perspective: I am developing an app with AngularJS. Thus I rather have a angular context menu then a default jquery menu.\r\nOne came really close: https://github.com/Templarian/ui.bootstrap.contextMenu\r\nYet this one was not so nice with providing icons, keyboard events some other things. But it does has one major improvement above this one: Async create sub menu's. Instead of providing an item I can provide an [promise](https://api.jquery.com/promise/), which would be loaded once the user has opened the sub-menu.\r\n\r\nPerhaps it would be possible to implement something similar to this? So instead of only providing items, or a list of items, provide a promise, and once it is completed it will render the sub menu's. \r\n\r\nI know the documentation provides something with async loading the context menu, but that's not what I am looking for, that happens before everything is created. This should happen once the context menu has already been created, either after the menu has opened, or once the user wants to open the sub menu.\r\n\r\nSee the plunker for an example using that angular directive: https://embed.plnkr.co/Bebmjn2aAlflxYe1cwIS/\r\n\r\nSimilar to #421, but then new created sub menu's. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/comments/233726166","html_url":"https://github.com/swisnl/jQuery-contextMenu/issues/429#issuecomment-233726166","issue_url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/429","id":233726166,"user":{"login":"bbrala","id":3294970,"avatar_url":"https://avatars.githubusercontent.com/u/3294970?v=3","gravatar_id":"","url":"https://api.github.com/users/bbrala","html_url":"https://github.com/bbrala","followers_url":"https://api.github.com/users/bbrala/followers","following_url":"https://api.github.com/users/bbrala/following{/other_user}","gists_url":"https://api.github.com/users/bbrala/gists{/gist_id}","starred_url":"https://api.github.com/users/bbrala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbrala/subscriptions","organizations_url":"https://api.github.com/users/bbrala/orgs","repos_url":"https://api.github.com/users/bbrala/repos","events_url":"https://api.github.com/users/bbrala/events{/privacy}","received_events_url":"https://api.github.com/users/bbrala/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T18:38:21Z","updated_at":"2016-07-19T18:38:21Z","body":"I understand that to get this to work nicely with Angular you would like to use promises like that. To be honest, I only have a small bit of experience with Angular. I can't really predict how much effort it would take to implement. \r\n\r\nI wouldn't be against a way to do this, but i wonder if it is even possible to do it properly without rewriting tons of code.\r\n\r\nAnyways I won't be implementing this, but if someone with more experience wants to, it would be fine to talk about how we would do that."}}
{"actor":{"display_login":"bbrala"}}