This is an old documentation. Go to the latest Customer's Canvas docs

setThemeConfiguration Method

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 >