icons(icons)
Class: Tree.
Description:
Sets custom icons to be used for open node, closed node, and leaf node.
Example of icons object: {closed:"icons/closed.png", open:"icons/open.png", leaf:"icons/leaf.png"}. Each element is optional.
Note: all properties of this object are optional.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
Object |
An object of icons to set. Each icon is optional. When some icons are omitted, default ones will be used. |
Returns:
Returns this Tree component for method chaining.
Type: Tree
Examples:
tree.icons({
closed:"icons/closed.png",
open:"icons/open.png",
leaf:"icons/leaf.png"
});
