{"action":"created","issue":{"url":"https://api.github.com/repos/almasaeed2010/AdminLTE/issues/963","repository_url":"https://api.github.com/repos/almasaeed2010/AdminLTE","labels_url":"https://api.github.com/repos/almasaeed2010/AdminLTE/issues/963/labels{/name}","comments_url":"https://api.github.com/repos/almasaeed2010/AdminLTE/issues/963/comments","events_url":"https://api.github.com/repos/almasaeed2010/AdminLTE/issues/963/events","html_url":"https://github.com/almasaeed2010/AdminLTE/issues/963","id":140246543,"number":963,"title":"$.AdminLTE.tree(\".sidebar\") - need to re-add this once dynamic Aurelia router is generated","user":{"login":"LazerFX","id":17338491,"avatar_url":"https://avatars.githubusercontent.com/u/17338491?v=3","gravatar_id":"","url":"https://api.github.com/users/LazerFX","html_url":"https://github.com/LazerFX","followers_url":"https://api.github.com/users/LazerFX/followers","following_url":"https://api.github.com/users/LazerFX/following{/other_user}","gists_url":"https://api.github.com/users/LazerFX/gists{/gist_id}","starred_url":"https://api.github.com/users/LazerFX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LazerFX/subscriptions","organizations_url":"https://api.github.com/users/LazerFX/orgs","repos_url":"https://api.github.com/users/LazerFX/repos","events_url":"https://api.github.com/users/LazerFX/events{/privacy}","received_events_url":"https://api.github.com/users/LazerFX/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/almasaeed2010/AdminLTE/labels/Question","name":"Question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-11T17:38:16Z","updated_at":"2016-03-14T09:12:58Z","closed_at":"2016-03-14T09:12:58Z","body":"I'm working on an Aurelia templated-application, using AdminLTE to skin.  It's working really good, however the sidebar is not triggering properly.  Basically, the router (generating the sidebar) is A) in a template, and B) data-bound.  Because of this, the AdminLTE.tree($(\".sidebar\")) which appears to be called during the AdminLTE initialisation calls too early.  So, I re-called it after the router initialised.  However, if I then re-work the router and change the data-bindings, adding a new drop-down menu, only the already existing menu will still animate the tree; the other parts will not.  If I re-call AdminLTE.tree($(\".sidebar\")), the existing tree will open, and then promptly close; while the new one will open as expected.\r\n\r\nWhat's the best way to handle a dynamically generated menu, re-built while the page is running?  Bearing in mind that the majority of the re-generation is done by the Aurelia templating and binding, so I've limited ability to plug in and amend that...\r\n\r\nIf I can provide any examples, please let me know the best place to put these - I think I can provide a minimum-case, if there's an online aurelia pastebin or similar...."},"comment":{"url":"https://api.github.com/repos/almasaeed2010/AdminLTE/issues/comments/196214604","html_url":"https://github.com/almasaeed2010/AdminLTE/issues/963#issuecomment-196214604","issue_url":"https://api.github.com/repos/almasaeed2010/AdminLTE/issues/963","id":196214604,"user":{"login":"LazerFX","id":17338491,"avatar_url":"https://avatars.githubusercontent.com/u/17338491?v=3","gravatar_id":"","url":"https://api.github.com/users/LazerFX","html_url":"https://github.com/LazerFX","followers_url":"https://api.github.com/users/LazerFX/followers","following_url":"https://api.github.com/users/LazerFX/following{/other_user}","gists_url":"https://api.github.com/users/LazerFX/gists{/gist_id}","starred_url":"https://api.github.com/users/LazerFX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LazerFX/subscriptions","organizations_url":"https://api.github.com/users/LazerFX/orgs","repos_url":"https://api.github.com/users/LazerFX/repos","events_url":"https://api.github.com/users/LazerFX/events{/privacy}","received_events_url":"https://api.github.com/users/LazerFX/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T09:12:58Z","updated_at":"2016-03-14T09:12:58Z","body":"That's worked, thank you very much :)"}}