Layouts v1 API is deprecated and no longer supported as of OpenFin 16+. Please use Platform API instead.
Identifies the window that is the source of the current event.
Event fired whenever the current tab group is minimized. See addEventListener.
import {tabstrip} from 'openfin-layouts';
import {TabGroupMinimizedEvent} from 'openfin-layouts/dist/client/tabstrip';
tabstrip.addEventListener('tab-group-minimized', (event: TabGroupMinimizedEvent) => {
const tabGroupID = event.identity;
console.log(`Tab group minimized: ${tabGroupID.uuid}/${tabGroupID.name}`);
});
Identifies the window that is the source of the current event.
Fired when a tab group is restored back to normal state from being maximized or minimized. See addEventListener.
import {tabstrip} from 'openfin-layouts';
import {TabGroupRestoredEvent} from 'openfin-layouts/dist/client/tabstrip';
tabstrip.addEventListener('tab-group-restored', (event: TabGroupRestoredEvent) => {
const tabGroupID = event.identity;
console.log(`Tab group restored: ${tabGroupID.uuid}/${tabGroupID.name}`);
});
Identifies the window that is the source of the current event.
Informs the layouts service a tab HTML5 drag sequence has ended. Required at the end of any tabstrip drag operation. Only one dragging operation should ever be taking place.
import {tabstrip} from 'openfin-layouts';
window.document.body.addEventListener("dragend", (event) => {
tabstrip.endDrag();
})
Updates the layouts service provider with the new order of tabs in a tabstrip. Required for workspace restore operations to restore the tabs in the correct order.
This call is purely informational and will not trigger any events.
The length of the provided array must match the current number of tabs, and each current tab must appear in the array exactly once to be valid.
import {tabstrip} from 'openfin-layouts';
const tabs = [{uuid: 'App0', name: 'App0'}, {uuid: 'App1', name: 'App1'}, {uuid: 'App2', name: 'App2'}];
tabstrip.reorderTabs(tabs);
The new order of the tabs. First index in the array will match the first tab in the strip.
Informs the layouts service a tab HTML5 drag sequence has begun. Required at the beginning of any tabstrip drag operation. Only one dragging operation should ever be taking place.
import {tabstrip} from 'openfin-layouts';
window.document.body.addEventListener("dragstart", (event) => {
tabstrip.startDrag({uuid: 'App0', name: 'App0'});
});
The identity of the tab which is being dragged.
Fired when the current tab group is maximized. See addEventListener.
import {tabstrip} from 'openfin-layouts'; import {TabGroupMaximizedEvent} from 'openfin-layouts/dist/client/tabstrip'; tabstrip.addEventListener('tab-group-maximized', (event: TabGroupMaximizedEvent) => { const tabGroupID = event.identity; console.log(`Tab group maximized: ${tabGroupID.uuid}/${tabGroupID.name}`); });