Trevixal API
    Preparing search index...

    Interface DocumentTabsOptions

    interface DocumentTabsOptions {
        autosaveMs?: number;
        confirmClose?: (meta: DocumentMeta) => boolean | Promise<boolean>;
        confirmDelete?: (meta: DocumentMeta) => boolean | Promise<boolean>;
        container: HTMLElement;
        initialDocumentId?: string;
        onNewDocument?: (record: DocumentRecord) => void;
        onSwitch?: (record: DocumentRecord) => void;
        promptText?: PromptText;
        templates?: readonly DocumentTemplate[];
    }
    Index
    autosaveMs?: number

    Quiet time after an edit before the document is written back (default 800).

    confirmClose?: (meta: DocumentMeta) => boolean | Promise<boolean>

    Veto closing a tab. Defaults to allowing it.

    confirmDelete?: (meta: DocumentMeta) => boolean | Promise<boolean>

    Veto deleting a document from a tab's menu. Defaults to allowing it.

    container: HTMLElement

    Where the strip is appended.

    initialDocumentId?: string

    Open (and activate) this document on top of whatever was restored.

    onNewDocument?: (record: DocumentRecord) => void
    onSwitch?: (record: DocumentRecord) => void
    promptText?: PromptText

    Ask for a folder name. Defaults to window.prompt.

    templates?: readonly DocumentTemplate[]

    Templates offered by the + button. Defaults to defaultTemplates.