Dear community,
the UI plugin API will be updated to reflect recent oVirt web
administration UI design changes.
The relevant patch is already merged in master branch [1] and the
associated BZ [2] is targeted for 4.3 release.
*What's new*
Two new API functions, addPrimaryMenuContainer and addSecondaryMenuPlace,
allow you to add custom secondary menu items to the vertical navigation
menu. You can target both existing (core) and custom primary menu items
when adding secondary ones.
*What's changed*
Some API functions were renamed to stay consistent with current UI design,
i.e. reflecting the absence of "main" and "sub" tabs.
- addMainTab => addPrimaryMenuPlace
- addSubTab => addDetailPlace
- setTabContentUrl => setPlaceContentUrl
- setTabAccessible => setPlaceAccessible
- addMainTabActionButton => addMenuPlaceActionButton
- addSubTabActionButton => addDetailPlaceActionButton
You can still use the original functions mentioned above, but doing so will
yield a warning in the browser console, for example:
*addMainTab is deprecated, please use addPrimaryMenuPlace instead.*
In addition, for functions that used to deal with "main" or "sub"
tabs, the
options object no longer supports alignRight (boolean) parameter. That's
because PatternFly tabs widget [3] expects all tabs to be aligned next to
each other, flowing from left to right.
We'll be updating the UI plugins feature page shortly to reflect all the
changes.
[1]
https://gerrit.ovirt.org/#/c/88690/
[2]
https://bugzilla.redhat.com/1553902
[3]
http://www.patternfly.org/pattern-library/widgets/#tabs
Regards,
Vojtech