{"action":"created","issue":{"url":"https://api.github.com/repos/jonmiles/bootstrap-treeview/issues/36","labels_url":"https://api.github.com/repos/jonmiles/bootstrap-treeview/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/jonmiles/bootstrap-treeview/issues/36/comments","events_url":"https://api.github.com/repos/jonmiles/bootstrap-treeview/issues/36/events","html_url":"https://github.com/jonmiles/bootstrap-treeview/issues/36","id":55411092,"number":36,"title":"How to enable Checkbox clickable?","user":{"login":"xaero7","id":3070463,"avatar_url":"https://avatars.githubusercontent.com/u/3070463?v=3","gravatar_id":"","url":"https://api.github.com/users/xaero7","html_url":"https://github.com/xaero7","followers_url":"https://api.github.com/users/xaero7/followers","following_url":"https://api.github.com/users/xaero7/following{/other_user}","gists_url":"https://api.github.com/users/xaero7/gists{/gist_id}","starred_url":"https://api.github.com/users/xaero7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaero7/subscriptions","organizations_url":"https://api.github.com/users/xaero7/orgs","repos_url":"https://api.github.com/users/xaero7/repos","events_url":"https://api.github.com/users/xaero7/events{/privacy}","received_events_url":"https://api.github.com/users/xaero7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-25T11:22:53Z","updated_at":"2015-01-26T03:03:03Z","closed_at":null,"body":"I've add checkbox in front of the text, and how to enable the checkbox clickable( that user can set all of the checkbox checked)?\r\n\r\n```javascript\r\nif (self.options.enableLinks) {\r\n\t// Add hyperlink\r\n\ttreeItem\r\n\t\t.append($(self._template.link)\r\n\t\t\t.attr('href', node.href)\r\n\t\t\t.append(node.text)\r\n\t\t);\r\n}\r\nelse if (self.options.enableCheckbox) {\r\n\t// checkbox\r\n\ttreeItem\r\n\t\t.append($(self._template.checkboxWrapper)\r\n\t\t\t.append($(self._template.checkbox)\r\n\t\t\t\t//.attr('name', node.name)\r\n\t\t\t\t.attr({name: node.name, checked : (node === self.selectedNode) ? true : false})\r\n\t);\r\n}\r\nelse {\r\n\t// otherwise just text\r\n\ttreeItem\r\n\t\t.append(node.text);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/jonmiles/bootstrap-treeview/issues/comments/71409430","html_url":"https://github.com/jonmiles/bootstrap-treeview/issues/36#issuecomment-71409430","issue_url":"https://api.github.com/repos/jonmiles/bootstrap-treeview/issues/36","id":71409430,"user":{"login":"TinoPham","id":10702440,"avatar_url":"https://avatars.githubusercontent.com/u/10702440?v=3","gravatar_id":"","url":"https://api.github.com/users/TinoPham","html_url":"https://github.com/TinoPham","followers_url":"https://api.github.com/users/TinoPham/followers","following_url":"https://api.github.com/users/TinoPham/following{/other_user}","gists_url":"https://api.github.com/users/TinoPham/gists{/gist_id}","starred_url":"https://api.github.com/users/TinoPham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TinoPham/subscriptions","organizations_url":"https://api.github.com/users/TinoPham/orgs","repos_url":"https://api.github.com/users/TinoPham/repos","events_url":"https://api.github.com/users/TinoPham/events{/privacy}","received_events_url":"https://api.github.com/users/TinoPham/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T03:03:03Z","updated_at":"2015-01-26T03:03:03Z","body":"oh, this is my issue. How to enable checkbox on treeview?"}}