MAIDR JavaScript API
    Preparing search index...

    Interface OfficeAppHost

    The Office namespace object Office.js defines: the host and platform, the open document, and the requirement-set check.

    interface OfficeAppHost {
        context?: {
            host?: string;
            platform?: string;
            document?: OfficeDocument;
            requirements?: {
                isSetSupported: (name: string, minVersion?: string) => boolean;
            };
        };
        onReady?: () => Promise<unknown>;
    }
    Index

    Properties

    Properties

    context?: {
        host?: string;
        platform?: string;
        document?: OfficeDocument;
        requirements?: {
            isSetSupported: (name: string, minVersion?: string) => boolean;
        };
    }

    Undefined until Office.js has initialized.

    onReady?: () => Promise<unknown>

    Resolves once Office.js has initialized, with the host it runs in.