Nuclear Power Manager

    @openfin/workspace-platform
    TypeScript icon, indicating that this package has built-in type declarations

    10.3.10 • Public • Published

    Workspace Platform API

    The Workspace Platform Client APIs allow integrators to create their own Workspace platforms.

    This API is experimental.

    Installation

    Run npm i -E @openfin/workspace-platform.

    Workspace Platform API documentation

    Code examples

    Initilaize a Workspace Platform

    import * as WorkspacePlatform from '@openfin/workspace-platform';
    
    const customThemes: WorkspacePlatform.CustomThemes = [
        {
            label: "OpenFin's Custom Theme",
            palette: {
                brandPrimary: #F51F63, // required
                brandSecondary: #1FF58A’, // required
                backgroundPrimary: #F8E71C’, // required - hex, rgb/rgba, hsl/hsla only - no string colors: ‘red’
                background2: #7D808A’ // any of the optional colors
            }
        }
    ];
    
    const overrideCallback: WorkspacePlatform.WorkspacePlatformOverrideCallback = async (WorkspacePlatformProvider) => {
        class Override extends WorkspacePlatformProvider {
            async quit(payload, callerIdentity) {
                return super.quit(payload, callerIdentity);
            }
        }
        return new Override();
    };
    
    await WorkspacePlatform.init({
        browser: {
            title: "My Browser"
        },
        overrideCallback,
        theme: customThemes
    });

    Install

    npm i @openfin/workspace-platform

    DownloadsWeekly Downloads

    551

    Version

    10.3.10

    License

    SEE LICENSE IN LICENSE.MD

    Unpacked Size

    1.28 MB

    Total Files

    139

    Last publish

    Collaborators

    • ife-dev1
    • mjosling
    • elliott.burr
    • vsaw3
    • aykochubey
    • gallak-openfin
    • rachel.adelman
    • galim.kaudinov
    • dewinner
    • hzhi0209
    • andy.westacott
    • __tomasz__
    • pgollamudi
    • cameronopenfin
    • jennrondeau
    • dhilan
    • benstubbington
    • davidcoxon-of
    • martynjanes
    • openfin-jeff
    • gouthamc
    • hannahmcmillen
    • xyopenfin
    • smocarski
    • eugeneross-openfin
    • imansuri
    • arvidh97
    • manamiueda
    • sakibahmad
    • shahossain
    • openfinbrandon
    • richardgutan
    • pierrebaize
    • noyangunday
    • michaelmcoates
    • johnmandia-openfin
    • rdepena
    • tgoc99
    • wenjunche
    • harsimran.openfin.singh
    • luiemilio
    • licui3936
    • ljopenfin
    • connormccafferty
    • adam.saland
    • openfin-ci
    • chrishobsonexpero
    • richbrowne-openfin
    • azizyok
    • openfin-gavin
    • oblarg