ng-orgchart icon indicating copy to clipboard operation
ng-orgchart copied to clipboard

Change color of one node

Open Rezoppei opened this issue 6 years ago • 1 comments

Is there a way to change the color of an especific node on Angular? I´m thinking about pass this information on the array that builds the tree (ds).

Rezoppei avatar Jan 08 '20 02:01 Rezoppei

Hi @Rezoppei You can change the styles of a specific node based on its id attribute. Please refer to Custom Node Chart Demo - https://stackblitz.com/edit/ng-orgchart-demo . I change the root node color in the styles.css file.

#oc-1 .fullname {
  color: blue;
}

dabeng avatar Jan 09 '20 07:01 dabeng