Interface WidgetConfig

Widget configuration

interface WidgetConfig {
    name: string;
    reduceViewportChange?: Debounce;
    destroy?(this): void;
    externalize?(this): Record<string, any>;
    externalizeAsProvider?(this): Record<string, any>;
    initialize(this): void;
}

Properties

name: string

Unique widget name

reduceViewportChange?: Debounce

Function to slow down the processing of Viewport changes, if it is absent, the standard debounce is used

Methods

  • Widget deletion function, this function should be called by the user when deleting the widget

    Parameters

    Returns void

  • A factory that exports the facade available to the user. By default, exports properties passed to the widget and properties that the iframe exports

    Parameters

    Returns Record<string, any>

  • A factory that exports the facade available in the iframe

    Parameters

    Returns Record<string, any>

  • Widget initialization function, should render the widget

    Parameters

    Returns void

Generated using TypeDoc