Skip to main content


adds a CSS class(es) to the component

css?: string;


<style>    .bg-gray {        background: #efefef;    }</style>
var tree = new dhx.Tree("tree_container", {css: "bg-gray"});

Related samples:

Note, that the DHTMLX library provides a set of own CSS classes that you can also apply to change the appearance of Tree:

var tree = new dhx.Tree("tree", {    css: "dhx_widget--bg-gray"});