How to use the @hpcc-js/phosphor-shim.DockPanel.Renderer function in @hpcc-js/phosphor-shim

To help you get started, we’ve selected a few @hpcc-js/phosphor-shim examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / packages / phosphor / src / PDockPanel.ts View on Github external
// import { Persist } from "@hpcc-js/other";
import { DockLayout, DockPanel, each, TabBar, Widget } from "@hpcc-js/phosphor-shim";
import { WidgetAdapter } from "./WidgetAdapter";

export class PRenderer extends DockPanel.Renderer {
    _owner: PDockPanel;

    constructor() {
        super();
    }

    createTabBar(): TabBar {
        const bar = super.createTabBar();
        bar.tabsMovable = this._owner.tabsMovable;
        return bar;
    }
}

export class PDockPanel extends DockPanel {
    private _tabsMovable: boolean;
    get tabsMovable(): boolean {

@hpcc-js/phosphor-shim

hpcc-js - Phosphor shim

Apache-2.0
Latest version published 8 months ago

Package Health Score

71 / 100
Full package analysis

Similar packages