rc-dock
    Preparing search index...

    Interface TabData

    Tab definition with its title, content and display options.

    interface TabData {
        cacheContext?: Context<any>;
        cached?: boolean;
        closable?: boolean;
        content:
            | ReactElement<any, string | JSXElementConstructor<any>>
            | ((tab: TabData) => ReactElement);
        group?: string;
        id?: string;
        minHeight?: number;
        minWidth?: number;
        title: ReactChild;
        [key: string]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown

      Application-defined fields carried by tab references and definitions.

    Index

    Properties

    cacheContext?: Context<any>

    Former context override for cached content.

    No longer needed.

    cached?: boolean

    Keep visited tab content mounted while inactive. Defaults to true. When false, inactive content is unmounted.

    closable?: boolean

    Show a close button. Defaults to false.

    content:
        | ReactElement<any, string | JSXElementConstructor<any>>
        | ((tab: TabData) => ReactElement)

    Tab body, or a render function receiving the current tab data.

    group?: string

    Style and behavior group from LayoutProps.groups. Tabs with different groups cannot share a panel through drag and drop.

    id?: string

    Unique tab id. Registry keys supply this id when using TabDefinitions.

    minHeight?: number

    Minimum height in pixels.

    minWidth?: number

    Minimum width in pixels.

    title: ReactChild

    Title displayed in the panel's tab bar and collapsed column rail.