Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This should be used together with launching the external screen usingĀ akioma.launchExternalScreen, see documentation of ExternalScreen

Code Block
languagejs
titleExternal screen taskbar item
linenumberstrue
collapsetrue
const taskbarObject = akioma.swat.MasterLayout.getBaseLayoutObject().getFirstChildByType( "grouptaskbar" ) as akioma.swat.Taskbar;
const activeGroupId : string        = taskbarObject.getActiveGroupId();
const activeGroup                   = taskbarObject.getGroupById( activeGroupId );

taskbarObject.addExternalItem( {
       // must be item id so the taskbar is recognized as external and displayed red
       id    : activeGroup.item_active,
       title : response.MessageDetail
});

...