You’re viewing outdated documentation. View the latest Customer’s Canvas On-Premises documentation.

setThemeConfiguration Method

Applies to: Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · Archived documentation

Callable

  • Changes a preloader image and the primary theme color.

    example
    let editor = await CustomersCanvas.IframeApi.loadEditor(iframe, product, config);
    await editor.setThemeConfiguration({ primaryColor: "rgb(120, 24, 123)" });

    Parameters

    • conf: IThemeConfiguration

      Defines the primary color and a new image for the standard preloader.

    Returns Promise < void >