Type Alias CustomTemplateIframePropsBeta

CustomTemplateIframeProps: {
    context: any;
    debug?: boolean;
    fullWidth?: boolean;
    height?: number | string;
    onError?: ((err: {
        message: string;
    }) => void);
    style?: ReactCssProperties;
    template: CustomTemplate | SavedTemplate | string;
    width?: number | string;
}

Type representing the properties for a custom template iframe.

Type declaration

  • Betacontext: any

    The context for the template.

  • Optional Betadebug?: boolean

    Whether to enable debug mode.

  • Optional BetafullWidth?: boolean

    Whether the iframe should take the full width.

  • Optional Betaheight?: number | string

    The height of the iframe.

  • OptionalonError?: ((err: {
        message: string;
    }) => void)

    Callback function to be called on error.

      • (err): void
      • Parameters

        • err: {
              message: string;
          }

          The error object.

          • message: string

        Returns void

  • Optional Betastyle?: ReactCssProperties

    Optional CSS properties for the iframe.

  • Betatemplate: CustomTemplate | SavedTemplate | string

    The template to be rendered in the iframe.

  • Optional Betawidth?: number | string

    The width of the iframe.