Hey guys,
UI plugin API now supports SystemTreeSelectionChange event, which is fired
whenever "System Tree" selection (currently selected tree node) is changed.
Example usage:
api.register({
SystemTreeSelectionChange: function(selectedNode) {
// See SystemTreeItemType Java enum for all supported values
var nodeType = selectedNode.type;
// Defined only if selected node has an entity associated
var associatedEntity = selectedNode.entity;
var associatedEntityId = associatedEntity && associatedEntity.id;
}
});
More details in UI plugin wiki:
http://www.ovirt.org/Features/UIPlugins#System_tree_node_selection
Regards,
Vojtech