angular-tree-component icon indicating copy to clipboard operation
angular-tree-component copied to clipboard

Request style for checked node

Open debslab opened this issue 9 years ago • 3 comments

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

debslab avatar Mar 10 '17 12:03 debslab

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 ''; }

debslab avatar Mar 10 '17 13:03 debslab

Awesome, glad you solved by yourself!

--

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- .

adamkleingit avatar Mar 12 '17 12:03 adamkleingit

thanks

finalxcode avatar Jun 26 '17 10:06 finalxcode