{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"RTL","type":"basic","slug":"rtl","excerpt":"","body":"You can make the tree right to left easily by supplying an 'rtl' boolean option.\n\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/#/rtl\\\" width=\\\"100%\\\" height=\\\"250px\\\"></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/rtl/rtl-tree.component.ts\\\" target=\\\"_blank\\\">Source code for this demo</a>\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<tree-root [focused]=\\\"true\\\" [nodes]=\\\"nodes\\\" [options]=\\\"options\\\"></tree-root>\",\n      \"language\": \"html\",\n      \"name\": \"sample.component.html\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"options = {\\n  rtl: true\\n};\\n\",\n      \"language\": \"javascript\",\n      \"name\": \"styles.scss\"\n    }\n  ]\n}\n[/block]","updates":["59e60bed2f2ef60038b8c56c","59e60d6a449035001a7862b3"],"order":7,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5c27be9e2b75bd0045dc746d","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-07-15T08:02:18.397Z","githubsync":"","__v":0}
You can make the tree right to left easily by supplying an 'rtl' boolean option. [block:api-header] { "title": "Demo" } [/block] [block:html] { "html": "<iframe src=\"https://angular-tree-component.azurewebsites.net/#/rtl\" width=\"100%\" height=\"250px\"></iframe>\n" } [/block] [block:html] { "html": "<a href=\"https://github.com/CirclonGroup/angular-tree-component/blob/master/projects/example-app/src/app/rtl/rtl-tree.component.ts\" target=\"_blank\">Source code for this demo</a>" } [/block] [block:code] { "codes": [ { "code": "<tree-root [focused]=\"true\" [nodes]=\"nodes\" [options]=\"options\"></tree-root>", "language": "html", "name": "sample.component.html" } ] } [/block] [block:code] { "codes": [ { "code": "options = {\n rtl: true\n};\n", "language": "javascript", "name": "styles.scss" } ] } [/block]