{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Checkboxes","type":"basic","slug":"tri-state-checkboxes","excerpt":"","body":"You can specify useCheckboxes option to show checkboxes, and the tree selection APIs to control and access which node is currently selected.\n[block:api-header]\n{\n  \"title\": \"Demo\"\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<iframe src=\\\"https://angular-tree-component.azurewebsites.net/#/checkboxes\\\" width=\\\"100%\\\" height=\\\"400px\\\"></iframe>\\n\"\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<a href=\\\"https://github.com/CirclonGroup/angular-tree-component/blob/master/projects/example-app/src/app/checkboxes/checkboxes.component.ts\\\" target=\\\"_blank\\\">Source code for this demo</a>\"\n}\n[/block]\nBy default, parent nodes reflect and control the status of children.\nIf you wish to override this behaviour, specify `useTriState: false` in the options.","updates":["591186122da2211b00d2dd4d"],"order":4,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5c27be9e2b75bd0045dc746a","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Guides","slug":"documentation","order":1,"from_sync":false,"reference":false,"_id":"5c27be9e2b75bd0045dc7459","version":"5c27be9e2b75bd0045dc7476","project":"5707c6875309d117006948d4","createdAt":"2016-04-08T14:56:07.661Z","__v":0},"project":"5707c6875309d117006948d4","user":"54d742a80771980d0052f4b5","parentDoc":null,"version":{"version":"8.2.0","version_clean":"8.2.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5c27be9e2b75bd0045dc7458","5c27be9e2b75bd0045dc7459","5c27be9e2b75bd0045dc745a"],"_id":"5c27be9e2b75bd0045dc7476","project":"5707c6875309d117006948d4","__v":0,"forked_from":"5b65b08eb1906e000319f872","createdAt":"2018-03-23T13:06:33.352Z","releaseDate":"2018-03-23T13:06:33.352Z"},"createdAt":"2017-02-27T07:30:33.037Z","githubsync":"","__v":0}
You can specify useCheckboxes option to show checkboxes, and the tree selection APIs to control and access which node is currently selected. [block:api-header] { "title": "Demo" } [/block] [block:html] { "html": "<iframe src=\"https://angular-tree-component.azurewebsites.net/#/checkboxes\" width=\"100%\" height=\"400px\"></iframe>\n" } [/block] [block:html] { "html": "<a href=\"https://github.com/CirclonGroup/angular-tree-component/blob/master/projects/example-app/src/app/checkboxes/checkboxes.component.ts\" target=\"_blank\">Source code for this demo</a>" } [/block] By default, parent nodes reflect and control the status of children. If you wish to override this behaviour, specify `useTriState: false` in the options.