[ovirt-devel] New UI plugin API additions

Vojtech Szocs vszocs at redhat.com
Fri Apr 15 17:24:24 UTC 2016


Hi,

in oVirt master / 4.0, following new UI plugin API
functions are now available.

--

engineBaseUrl [1]: can be used to construct Engine
URLs.

Signature:

  engineBaseUrl()

Examples:

  // returns something like:
  //   https://example.com:8443/ovirt-engine/
  api.engineBaseUrl()

[1] https://gerrit.ovirt.org/#/c/55694/

--

showAlert [2]: can be used to show 'global' alert
messages (colored boxes in top-center part of UI).

Signature:

  showAlert(alertTypeName, message, options)

Examples:

  api.showAlert('success', 'Everything is good');

  api.showAlert('danger', 'Something is bad', {
    autoHideMs: 3000
  });

[2] https://gerrit.ovirt.org/#/c/55504/

--

Regards,
Vojtech



More information about the Devel mailing list