{"action":"created","issue":{"url":"https://api.github.com/repos/mbraak/jqTree/issues/373","labels_url":"https://api.github.com/repos/mbraak/jqTree/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/mbraak/jqTree/issues/373/comments","events_url":"https://api.github.com/repos/mbraak/jqTree/issues/373/events","html_url":"https://github.com/mbraak/jqTree/issues/373","id":73941164,"number":373,"title":"Is there any event triggering when tree fully loaded?","user":{"login":"SergeyBan","id":7479677,"avatar_url":"https://avatars.githubusercontent.com/u/7479677?v=3","gravatar_id":"","url":"https://api.github.com/users/SergeyBan","html_url":"https://github.com/SergeyBan","followers_url":"https://api.github.com/users/SergeyBan/followers","following_url":"https://api.github.com/users/SergeyBan/following{/other_user}","gists_url":"https://api.github.com/users/SergeyBan/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyBan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyBan/subscriptions","organizations_url":"https://api.github.com/users/SergeyBan/orgs","repos_url":"https://api.github.com/users/SergeyBan/repos","events_url":"https://api.github.com/users/SergeyBan/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyBan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-07T10:56:45Z","updated_at":"2015-05-27T07:36:04Z","closed_at":null,"body":"I have read documentation a few times and as I understood there is no event which can be triggered when the tree is fully loaded. It would be nice to have such event."},"comment":{"url":"https://api.github.com/repos/mbraak/jqTree/issues/comments/105800622","html_url":"https://github.com/mbraak/jqTree/issues/373#issuecomment-105800622","issue_url":"https://api.github.com/repos/mbraak/jqTree/issues/373","id":105800622,"user":{"login":"mbraak","id":235558,"avatar_url":"https://avatars.githubusercontent.com/u/235558?v=3","gravatar_id":"","url":"https://api.github.com/users/mbraak","html_url":"https://github.com/mbraak","followers_url":"https://api.github.com/users/mbraak/followers","following_url":"https://api.github.com/users/mbraak/following{/other_user}","gists_url":"https://api.github.com/users/mbraak/gists{/gist_id}","starred_url":"https://api.github.com/users/mbraak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbraak/subscriptions","organizations_url":"https://api.github.com/users/mbraak/orgs","repos_url":"https://api.github.com/users/mbraak/repos","events_url":"https://api.github.com/users/mbraak/events{/privacy}","received_events_url":"https://api.github.com/users/mbraak/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T07:36:04Z","updated_at":"2015-05-27T07:36:04Z","body":"You can use ``tree.refresh`` like this:\r\n\r\n```js\r\n$('#tree1').on('tree.refresh', function() {\r\n  // This function is called after the tree rendered\r\n});\r\n```\r\n\r\nI personally never use this event. Depending on your use case there are other options:\r\n\r\n* [tree.init](https://mbraak.github.io/jqTree/#event-tree-init) which is called after the tree data is loaded.\r\n* [onCreateLi](https://mbraak.github.io/jqTree/#options-oncreateli) to customize the rendering of the tree.\r\n"}}