Skip to main content

tree.icon.sprites

TreeIconSprites : d2/sdk/controls/icon.sprites/tree.icon.sprites

Tree icons collection. Used to visually represent a NodeModel within a TreeView.

The collection can be looked up to discover possible represenation or it can be augmented by extension

See NodeIconSprites for sample extension definition. Registering the extension is also similar except the target module

Extends: Backbone.Collection
Example (To register an extension)

// Assuming that mybundle/extensions/tree.icons.js is the extension
// Add to extension.json as shown below

"d2/sdk/controls/icon.sprites/tree.icon.sprites": {
"extensions": {
"mybundle": [
"mybundle/extensions/tree.icons"
]
}
}