setParam setparam

JavaScript API reference for eCatalog Viewer.

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 init().

This method is optional if the viewer configuration information is passed with 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 section-1d3cf85bc7cc4dfe9670e038d02b9101

None.

Example section-9e9332aa86b74a5fb321375c03fdc5b3

<instance>.setParam("style", "customStyle.css")
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8