BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
[Script]
$("#customtree").ejTreeView({
fields: { id: "id", parentId: "pid", text: "name", hasChild: "hasChild", dataSource: localData, expanded: "expanded" },
cssClass: "mytree", //apply custom css class to TreeView
});
[CSS]
<style>
/*apply custom css to all nodes that have children's*/
.mytree .e-text-wrap .e-icon + .e-text {
font-weight: bold;
}
/*apply custom css to first level*/
.mytree > ul > .e-item > .e-text-wrap .e-text {
color: brown;
}
/*apply custom css to second level*/
.mytree > ul > .e-item > ul > .e-item > .e-text-wrap .e-text {
color: darkmagenta;
}
</style>
|