close

Filter

loading table of contents...

Studio Developer Manual / Version 2107

Table Of Contents

7.14.3 Configure a Singleton Work Area Tab

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.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.