setParams

JavaScript API reference for eCatalog Viewer.

[!DNL setParams( *params*)]

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 &. Just as in a query string, the names and values are percent-encoded using UTF8. Before you call [!DNL init()], this parameter must be called.

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

See also init.

params

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

Returns

None.

Example

<instance>.setParams("PageView.zoomstep=2,3&PageView.iscommand=op_sharpen%3d1")

On this page