setParams

JavaScript API reference for Inline Zoom Viewer.

setParams( *params*)

params

{string} name=value parameter pairs separated with &.

Sets one or more parameters to a given value. The method argument syntax is identical to a URL query string. That is, it represents name=value pairs separated with &. The same as in a query string, names, and values are percent-encoded using UTF8. Before you call init(), this parameter must be called. This method is optional if viewer configuration information is passed with config JSON object to the constructor.

See also init.

Returns

None.

Example

<instance>.setParams("FlyoutZoomView.zoomfactor=2,3&Swatches.iscommand=op_sharpen%3d1")

On this page