Diva.js Public API - v7.4.0
    Preparing search index...

    Interface DivaOptions

    Constructor options for a Diva viewer.

    interface DivaOptions {
        objectData: string;
        initialPage?: DivaPageTarget;
        acceptHeaders?: string[];
        showSidebar?: boolean;
        sidebarWidth?: number;
        sidebarPanel?: DivaSidebarPanel;
        showTitle?: boolean;
        setLanguage?: string;
    }
    Index
    objectData: string

    URL of the initial IIIF manifest or collection.

    initialPage?: DivaPageTarget

    Page to display when the initial manifest opens.

    Numeric values are zero-based. Selector matching follows DivaPageSelector. Invalid or unmatched targets silently fall back to page index 0. This option applies only to the initial manifest; resources loaded later begin at index 0.

    acceptHeaders?: string[]

    Preferred HTTP Accept values for IIIF resource requests.

    showSidebar?: boolean

    Show the navigation sidebar.

    true

    sidebarWidth?: number

    Initial width of the thumbnail and contents sidebar, in CSS pixels.

    Finite values are rounded and constrained to the supported 220–520 pixel resize range. Invalid runtime values use the default.

    320

    sidebarPanel?: DivaSidebarPanel

    Panel selected when the navigation sidebar is first shown.

    Contents requires manifest ranges, and Metadata requires manifest metadata or homepage links. Diva falls back to Thumbnails when the requested panel is not available for the loaded manifest.

    "thumbnails"

    showTitle?: boolean

    Show the resource title.

    true

    setLanguage?: string

    Preferred interface language; otherwise the browser language is used.