[ovirt-devel] UI plugins :: SystemTreeSelectionChange event

Vojtech Szocs vszocs at redhat.com
Tue May 13 14:46:49 UTC 2014


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



More information about the Devel mailing list