Trevixal API
    Preparing search index...

    Interface FileActions

    File-level actions the host owns, because they touch storage, the network or the page: @trevixal/ui's documents module implements all of them.

    interface FileActions {
        backups?: () => void;
        documentRestrictions?: () => void;
        downloadAs?: (format: string) => void;
        exportPDF?: () => void;
        exportSelection?: () => void;
        importDocument?: () => void;
        newDocument?: () => void;
        openDocument?: () => void;
        printPreview?: () => void;
        protectDocument?: () => void;
        saveDocument?: () => void;
    }
    Index
    backups?: () => void
    documentRestrictions?: () => void

    Choose which of copy, cut, paste, print, download and the context menu are blocked.

    downloadAs?: (format: string) => void

    Download in a named format: 'html' | 'markdown' | 'text' | 'json' | 'docx' | 'rtf', or 'encrypted' for a password-protected .tvx envelope (the menu entry appears only when protectDocument is wired too).

    exportPDF?: () => void
    exportSelection?: () => void
    importDocument?: () => void
    newDocument?: () => void
    openDocument?: () => void
    printPreview?: () => void
    protectDocument?: () => void

    Set (or lift) a password and expiry; @trevixal/extension-security does the crypto.

    saveDocument?: () => void