Member Junction
    Preparing search index...

    Interface MJWorkspaceTab<TState>

    One workspace tab. State is intentionally unknown: the framework moves tabs around and never inspects their payload, which is what keeps it app-agnostic. Hosts narrow it themselves — this is the layer boundary, not weak typing.

    interface MJWorkspaceTab<TState = unknown> {
        Dirty?: boolean;
        Icon?: string;
        Id: string;
        Label: string;
        RejectionReason?: string | null;
        State: TState;
        Status: MJWorkspaceTabState;
    }

    Type Parameters

    • TState = unknown
    Index

    Properties

    Dirty?: boolean

    True when the tab has unsaved edits — drives the discard confirm.

    Icon?: string

    Optional Font Awesome class rendered before the label.

    Id: string

    Stable identity within the strip.

    Label: string

    Tab caption.

    RejectionReason?: string | null

    Set when Status is 'rejected'; surfaced as the tab tooltip so the reason travels with the tab.

    State: TState

    Host-owned payload — the in-progress draft.