Treeview Color

Hi

how can change back color of hot Node/child?

Thank you in advance for the help
George

1 Reply

AB Ashokkumar Balasubramanian Syncfusion Team February 26, 2018 01:16 PM UTC

Hi George 
 
We have provided the cssClass property for customizing the tree nodes as per your requirement. You can use this property to customize the tree nodes per node levels. Please check the below code block. 
 
[HTML] 
 
<ejs-treeview id="default" [fields]='field' [cssClass]='cssClass'></ejs-treeview> 
 
[Style] 
 
.mytree > ul > .e-list-item .e-fullrow {  
        background: brown;  
    }  
    /*apply custom css to second level*/  
    .mytree > ul > .e-list-item > ul >.e-list-item .e-fullrow {  
        background: darkmagenta;  
    } 
    .mytree .e-list-text{ 
      color:white; 
    } 
 
For your reference we have prepares simple sample, please check the sample in below location. 
 
 
To know more details about cssClass property, please check the below documentation. 
 
 
Please let us know, if the provided information’s are helpful to resolve your problem or not. 
 
Regards, 
Ashokkumar B. 
 


Loader.
Up arrow icon