icon

allows adding custom icons for tree items

object icon;

Example

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

Related samples

Details

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