setParam

JavaScript API reference for eCatalog Viewer.

[!DNL setParam( *name, value*)]

Sets the viewer parameter to a specified value. The parameter is either a viewer-specific configuration option or a software development kit modifier. This parameter is called before [!DNL init()].

This method is optional if the viewer configuration information is passed with [!DNL config] JSON object to the constructor.

See also init.

name

{string} name of parameter.

value

{string} value of parameter. The value cannot be percent-encoded.

Returns

None.

Example

[!DNL <instance>.setParam("style", "customStyle.css")]

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now