Interface SpotfireDocument

Represents the Spotfire document and provides access to read and modify parts of it.

interface SpotfireDocument {
    activePage(): ReadableProxy<Page>;
    pages(): Readable<Page[]>;
    properties(): Readable<AnalysisProperty<AnalysisPropertyDataType>[]>;
    property<T>(name: string): ReadableProxy<AnalysisProperty<T>>;
    setActivePage(name: string): void;
    setActivePage(index: number): void;
    setActivePage(page: Page): void;
    table(name: string): ReadableProxy<DataTable>;
    tables(): Readable<DataTable[]>;
}

Methods

  • Sets the specified Page as the active page.

    Parameters

    • name: string

      The name/title or id of the page to set as active.

    Returns void

  • Sets the specified index as the active page index.

    Parameters

    • index: number

      The index of the page to set as active.

    Returns void

  • Sets the specified Page as the active page.

    Parameters

    • page: Page

      The Page object to set as active.

    Returns void