Thanks! That was what I was after..
I just want to be sure that the expected behaviour is that:
onBeforePlotNode: function(node) {
if (node == st.clickedNode) {
node.data.$color = '#aaaadd';
} else {
delete node.data.$color;
}
differs from:
onBeforePlotNode: function(node) {
if (node.selected) {
node.data.$color = '#aaaadd';
} else {
delete node.data.$color;
}
The latter will give all nodes in an ST-tree up to the selected node the color specified, whereas the former will only give the node that has focus right node the desired color.
Does this differ from your behavior Venkatesh?
-ra