setParam setparam

JavaScript API reference for Video Image 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 was passed with config JSON object to constructor.

See also init.

Parameters section-c68a5a3688d342fd9d6a7fd59867cc7a

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", "etc/dam/presets/css/html5_interactiveimage.css")
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8