setAsset

JavaScript API reference for Carousel Viewer.

setAsset( *asset*)

Sets the new asset. You can call this parameter at any time, either before or after init(). If it is called after init(), the viewer swaps the asset at runtime.

See also init.

asset

{ String} new asset ID.

Images which use IR (Image Rendering) or UGC (User-Generated Content) are not supported by this viewer.

Returns

None.

Example

Single image reference:

<instance>.setAsset("/content/dam/dm-public-facing-live-demo-page/04_shoppable_carousel/05_shoppable_banner")

On this page

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