setParams

JavaScript API reference for Carousel Viewer.

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 init(), this parameter must be called.

This method is optional if the viewer configuration information was passed with config JSON object to constructor.

See also init.

Parameter

params

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

Returns

None.

Example

<instance>.setParams("CarouselView.fmt=png&CarouselView.iscommand=op_sharpen%3d1")

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