Studio Developer Manual / Version 2107
Table Of Contents
The previously shown OpenTabAction
has an additional Boolean configuration
parameter singleton
. In the example a button that opens a
CoreMediaTab
is added, which is a browse tab with the fix URL of the CoreMedia
homepage:
... <editor:FavoritesToolbar> <editor:plugins> <ui:AddItemsPlugin> <ui:items> <!-- Add a button that opens the CoreMedia homepage browse tab as singleton --> <Button itemId="coremediaTab"> <baseAction> <editor:OpenTabAction singleton="true" text="..."> <editor:tab> <example:CoreMediaTab/> </editor:tab> </editor:OpenTabAction> </baseAction> </Button> </ui:items> ... </ui:AddItemsPlugin> </editor:plugins> </editor:FavoritesToolbar> ...
Example 7.70. Adding a button to open a browser tab
In the work area there will be no more than one opened coreMediaTab
: When
clicking the button the already opened coreMediaTab
will be active instead of
opening a new one.