Trevixal API
    Preparing search index...
    interface DocumentTabs {
        activeId: string | null;
        element: HTMLElement;
        openIds: readonly string[];
        ready: Promise<void>;
        close(id: string): Promise<void>;
        destroy(): void;
        flush(): Promise<void>;
        newDocument(template?: DocumentTemplate): Promise<DocumentRecord>;
        open(id: string): Promise<void>;
        refresh(): void;
    }
    Index
    activeId: string | null
    element: HTMLElement
    openIds: readonly string[]

    Open tab ids in strip order (pinned first).

    ready: Promise<void>

    Resolves once the persisted tabs have been restored and a document is loaded.

    • Parameters

      • id: string

      Returns Promise<void>

    • Returns void

    • Write the active document to the store now, if it has unsaved edits.

      Returns Promise<void>

    • Open a document in a tab (if not already) and switch to it.

      Parameters

      • id: string

      Returns Promise<void>

    • Re-render from the store. Called automatically on store changes.

      Returns void