Optional
disableOptional
faviconThe favicon to display on the top left of the created browser window.
Optional
isWhen true, disables the ability to close pages, drag pages within the window, and drag pages into/out of the window. False by default.
Optional
navigationUse when you want to display navigation buttons in Browser toolbar. Disabled by default.
Optional
hotkeysimport * as WP from "@openfin/workspace-platform";
const platform = WP.getCurrentSync();
const browserWin = platform.Browser.createWindow({
...,
workspacePlatform: {
...,
navigationButtons: {
enabled: true;
}
}
});
// With disabled default keyboard shortcuts
const browserWin = platform.Browser.createWindow({
...,
workspacePlatform: {
...,
navigationButtons: {
enabled: true;
hotkeysDisabled: true;
}
}
});
Optional
newLanding page that shows up when you add a new page from the plus button that exists in the window frame where the page selector is shown. If you do not provide a newPageUrl, then the new Page plus button will not be shown and you cannot create a new empty Page or Window.
Optional
newLanding page that shows up when you add a new tab from the plus button that exists in the tabstrip. If you do not provide a newTabUrl, then the plus button in the tabstrip will not be shown and users cannot create a new empty tab.
The initial set of pages to add to the created browser window.
Optional
preventWhen true, disables the ability to close pages in the window. False by default.
Optional
preventWhen true, page tabs in the window will not be draggable. This includes reordering pages and dragging them out of the window. False by default.
Optional
preventWhen true, disables the ability to drag pages into the window. False by default.
Optional
preventWhen true, disables the ability to drag pages out of a window. False by default.
Optional
titleA UI friendly title for the created browser window.
Optional
toolbarOptional
windowOptional
windowFor internal usage. Defaults to 'browser' when Browser is enabled when the WorkspacePlatform is initialized. In order to use
non-Browser layout windows ('platform' windows) in a Browser-enabled workspace platform, set windowType to platform
. In that instance, the other properties
in the workspacePlatform object are not relevant.
Remove the Page UI and only allow a single page in the browser window. Must be set to true for this behavior. If this is not set to false, then an empty
pages
option will be populated with a single page.