Hi everyone, just a heads-up on recent UI plugin API changes.


oVirt 4.2

4.2.5+ will support "icon" option when adding new menu item & content via addMainTab API function [1]. Both Font Awesome and PatternFly icons are supported [2].

  api.addMainTab('Test', 'fooBar', 'plugin/plugin-name/test.html', {
    icon: 'fa-lock'
    // icon: 'pficon-security'
  });

[1] https://bugzilla.redhat.com/1591730
[2] https://www.patternfly.org/styles/icons/


oVirt master

You can now use showToast API function [3] to render "toast" notifications in top right corner of the page.

  api.showToast('success', 'Operation completed successfully.');

The first parameter can be "info" (white), "success" (green), "warning" (yellow) or "danger" (red).

[3] https://gerrit.ovirt.org/#/c/92354/


Regards,
Vojtech