This example shows how to add tools (actions) and components in tree nodes. The tools added here allow moving the layers up and down and deleting them. The component added for each node is a toolbar including an opacity slider which acts on the node's layer.
The js is not minified so it is readable. See tree-tools.js.