SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Class WindowChrome

    Manages the single-per-window app chrome for a workbook: the document/tab title (with an unsaved marker), an unsaved-changes close prompt, and a browser keyboard guard.

    Framework-agnostic (no React) — useWindowChrome drives it for React apps. These are window-level concerns that an embeddable widget (e.g. Studio) must NOT own, so they live here as an opt-in helper for apps that own the whole window. It is value-driven: the consumer pushes the current (name, dirty) via update (from IWorkbook.onNameChange and a TransactionSaveStateManager) — it holds no model references of its own.

    Index
    • Remove all listeners and restore the original document.title.

      Returns void

    • Push the current display state. Window-level listeners (beforeunload, keyboard) are installed on the first call and read the pushed state live.

      Parameters

      • name: string | null
      • dirty: boolean

      Returns void