{"action":"created","issue":{"url":"https://api.github.com/repos/veg/phylotree.js/issues/20","repository_url":"https://api.github.com/repos/veg/phylotree.js","labels_url":"https://api.github.com/repos/veg/phylotree.js/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/veg/phylotree.js/issues/20/comments","events_url":"https://api.github.com/repos/veg/phylotree.js/issues/20/events","html_url":"https://github.com/veg/phylotree.js/issues/20","id":155521918,"number":20,"title":"Modify the context menu","user":{"login":"talnagar","id":7373236,"avatar_url":"https://avatars.githubusercontent.com/u/7373236?v=3","gravatar_id":"","url":"https://api.github.com/users/talnagar","html_url":"https://github.com/talnagar","followers_url":"https://api.github.com/users/talnagar/followers","following_url":"https://api.github.com/users/talnagar/following{/other_user}","gists_url":"https://api.github.com/users/talnagar/gists{/gist_id}","starred_url":"https://api.github.com/users/talnagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talnagar/subscriptions","organizations_url":"https://api.github.com/users/talnagar/orgs","repos_url":"https://api.github.com/users/talnagar/repos","events_url":"https://api.github.com/users/talnagar/events{/privacy}","received_events_url":"https://api.github.com/users/talnagar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/veg/phylotree.js/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":{"login":"stevenweaver","id":535261,"avatar_url":"https://avatars.githubusercontent.com/u/535261?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenweaver","html_url":"https://github.com/stevenweaver","followers_url":"https://api.github.com/users/stevenweaver/followers","following_url":"https://api.github.com/users/stevenweaver/following{/other_user}","gists_url":"https://api.github.com/users/stevenweaver/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenweaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenweaver/subscriptions","organizations_url":"https://api.github.com/users/stevenweaver/orgs","repos_url":"https://api.github.com/users/stevenweaver/repos","events_url":"https://api.github.com/users/stevenweaver/events{/privacy}","received_events_url":"https://api.github.com/users/stevenweaver/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-05-18T14:51:36Z","updated_at":"2016-05-18T18:50:44Z","closed_at":null,"body":"Hi\r\nI was wondering if there is a way to modify the context menu shown when clicking on nodes/edges.\r\nCurrently I managed doing it when using some naive d3 manipulation: \r\n`d3.select(\"#d3_layout_phylotree_context_menu\").append('li').text('test').attr('id','testid')`\r\nHowever, in this way every time the menu is hidden the additions disappear as well and I need to re apply them every time the menu becomes available.\r\n\r\nHelp will be much appreciated.\r\nBest\r\nTal\r\n\r\n\t"},"comment":{"url":"https://api.github.com/repos/veg/phylotree.js/issues/comments/220122697","html_url":"https://github.com/veg/phylotree.js/issues/20#issuecomment-220122697","issue_url":"https://api.github.com/repos/veg/phylotree.js/issues/20","id":220122697,"user":{"login":"spond","id":1018513,"avatar_url":"https://avatars.githubusercontent.com/u/1018513?v=3","gravatar_id":"","url":"https://api.github.com/users/spond","html_url":"https://github.com/spond","followers_url":"https://api.github.com/users/spond/followers","following_url":"https://api.github.com/users/spond/following{/other_user}","gists_url":"https://api.github.com/users/spond/gists{/gist_id}","starred_url":"https://api.github.com/users/spond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spond/subscriptions","organizations_url":"https://api.github.com/users/spond/orgs","repos_url":"https://api.github.com/users/spond/repos","events_url":"https://api.github.com/users/spond/events{/privacy}","received_events_url":"https://api.github.com/users/spond/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T18:50:43Z","updated_at":"2016-05-18T18:50:43Z","body":"Dear @talnagar,\r\n\r\nPlease see http://bl.ocks.org/spond/30926a292ac4f49e1c6c7d900be65f94 \r\n\r\nThe interface isn't the most flexible (i.e., you are not allowed to directly modify DOM objects in callbacks), but it allows the module to control when updates happen and what takes precedence. \r\n\r\nCheers,\r\nSergei"}}