Layouts v1 API is deprecated and no longer supported as of OpenFin 16+. Please use Platform API instead.
Object containing details of the window identity and how it should be created.
An additional helper function that can be used to create custom restore handlers.
Given a WorkspaceWindow it will determine if the window is open and then call createChild or positionChild as appropriate.
Object containing details of the window identity and how it should be positioned/created.
Given a WorkspaceWindow object for a currently open window, this will position and update the visibility, state and frame of that window to fit with the restoring workspace.
Called by the standardRestoreHandler for any currently running windows in the workspace.
Object containing details of the window identity and how it should be positioned.
A simple restore handler that can be passed to setRestoreHandler when no custom logic is needed.
This restore handler will open any child windows which are not currently running, and move new and existing child windows to their expected positions for the workspace being restored.
import {workspaces, restoreHelpers} from 'openfin-layouts';
workspaces.setRestoreHandler(restoreHelpers.standardRestoreHandler);
Describes the running app's child windows and their expected post-restore state. See WorkspaceApp and setRestoreHandler for more information on what this will contain.
Given a WorkspaceWindow for a non-open window, this function will create the window, position it, and update its visibility, state, and frame to fit with the restoring workspace.
Called by the standardRestoreHandler for any non-open windows in the WorkspaceApp.
Error
: If there is an existing child window with the same name.