New UI plugin APIs available

Hi everyone, a couple of UI plugin RFEs have landed into master branch recently. Here's a short summary of changes made to UI plugin API: * (new) revealPlace function that can be used to reveal desired application place, e.g. standard or plugin-contributed main tab. Example: api.revealPlace('hosts'); // Switch to "Hosts" main tab Doc: http://www.ovirt.org/Features/UIPlugins#Navigation * (new) setSearchString function that can be used to apply given search string in WebAdmin's search panel. Example: api.setSearchString('Hosts: name = abc'); Doc: http://www.ovirt.org/Features/UIPlugins#Search * (new) addMainTab & addSubTab functions now support controlling tab's relative position within the tab panel. Example: api.addMainTab('Test', 'testTab', 'plugin/TestPlugin/tab.html', { priority: -1 // Position this tab before all main tabs } ); I've also added a wiki section describing common practices for working with oVirt Engine REST API (e.g. details on CSRF token): http://www.ovirt.org/Features/UIPlugins#Working_with_REST_API_session Regards, Vojtech
participants (1)
-
Vojtech Szocs