Interface IToolbarConfig<D>

An Interface to define a Windows-Like-Toolbar.

Type Parameters

Hierarchy

  • IToolbarConfig

Properties

Properties

activeTab?: string
tabs: {
    [index: string]: {
        disabled?: boolean;
        hidden?: boolean;
        menu: IMenubar<D>;
        onActive?: ((D) => Promise<boolean>);
        onLeave?: ((D) => Promise<boolean>);
        text: string;
        tooltip?: string;
    };
}

Type declaration

  • [index: string]: {
        disabled?: boolean;
        hidden?: boolean;
        menu: IMenubar<D>;
        onActive?: ((D) => Promise<boolean>);
        onLeave?: ((D) => Promise<boolean>);
        text: string;
        tooltip?: string;
    }
    • Optional disabled?: boolean

      Flag which disables the Toolbar

    • Optional hidden?: boolean

      Flag which hides the Toolbar

    • menu: IMenubar<D>

      A Configuration of the Menu, which is provided inside of the Toolbar.

    • Optional onActive?: ((D) => Promise<boolean>)
        • (D): Promise<boolean>
        • Called, if the toolbar is active

          Parameters

          • D: any

          Returns Promise<boolean>

    • Optional onLeave?: ((D) => Promise<boolean>)
        • (D): Promise<boolean>
        • Called, if the toolbar should be left.

          Parameters

          • D: any

          Returns Promise<boolean>

    • text: string

      The Render Text of the Tab

    • Optional tooltip?: string

      A Tooltip, which is shown on hovering over the Tab-Element

Generated using TypeDoc