css
adds a CSS class(es) to the component
css?: string;
Example
<style>
.bg-gray {
background: #efefef;
}
</style>
const 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:
const tree = new dhx.Tree("tree_container", {
css: "dhx_widget--bg-gray"
});