Request style for checked node
Hi, After adding checkbox before tree nodes, I want to style the nodes depending on checkbox state. I see that styles are handled in this location - https://github.com/500tech/angular-tree-component/blob/024202a9faa10cdf56ec083598654a431b6d841f/lib/components/tree-node.component.ts#L33. How can I add a style there for node.checked state.
Thank you
I am able to fix this by adding following in actionMapping, hence closing this issue. nodeClass: (node:TreeNode) => {if (node.data.checked) return 'tree-node-checked'; else return ''; }
Awesome, glad you solved by yourself!
--
- Adam Klein http://il.linkedin.com/in/adamklein500
- CTO @ 500Tech.com http://500tech.com/
- AngularJS, ReactJS, NodeJS
- Development, consulting, training and public speaking
- (+972) 52 747 5633
On Fri, Mar 10, 2017 at 3:10 PM, debslab [email protected] wrote:
Closed #213 https://github.com/500tech/angular-tree-component/issues/213 .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/500tech/angular-tree-component/issues/213#event-994860772, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2SStU2F9741Vskk-RZdOmtFnQLBaBNks5rkUu4gaJpZM4MZWA- .
thanks