PostMessage RPC API Documentation - v0.2.2
    Preparing search index...

    Interface IframeOptions

    Options for creating and initializing an iframe-based plugin

    interface IframeOptions {
        container: HTMLElement;
        src: string;
        beforeInit?: (
            context: { container: HTMLElement; iframe: HTMLIFrameElement },
        ) => void;
        timeout?: number;
    }
    Index

    Properties

    container: HTMLElement

    DOM element where the iframe will be appended

    src: string

    URL of the plugin to load in the iframe

    beforeInit?: (
        context: { container: HTMLElement; iframe: HTMLIFrameElement },
    ) => void

    Optional callback invoked before appending iframe to DOM

    timeout?: number

    Optional timeout in milliseconds for plugin initialization