allows adding custom icons for tree items

object icon;


var tree = new dhx.Tree("tree_container", {
    icon: {
        folder: "fas fa-book",
        openFolder: "fas fa-book-open",
        file: "fas fa-file"

Related samples


There are three types of icons that can be customized:

  • file
  • folder
  • openFolder

You should specify the name of the necessary icon type in the icon object and set the name of an icon from the used icon pack as its value.

See also
Back to top