API Reference for Content Widgets
Onsite Widgets JavaScript API Reference
Inline Tiles API
Events
The following events are available in Waterfall, Carousel, Gallery, Feed, Grid, Masonry, Nightfall, and all future widgets.
Legacy Callbacks
This section is only for Waterfall and Carousel widgets.
Translation Strings
You can modify or translate Widget texts by accessing window.Strings
global variable. The following strings are only useful on the Waterfall, Grid, Masonry, Quadrant, Feed, and Nightfall widgets.
Global Widget Events API
The following Inline Tiles API are only available in Waterfall, Carousel, and Gallery widgets
You can access all the following events and methods via the window.Stackla.WidgetManager
global variable.
Events
You can track user interactions by subscribing to Widget events.
Example Usage (for both Event and Methods)
Note: To avoid manually checking the existence of the Stackla.WidgetManager
global variable
we recommend you use the Expanded Tile Code Editor in our Nosto Admin Portal.
Available Events
beforeExpandedTileClose Triggered before the Expanded Tile closes
e
data.el
data.tileData
data.widgetId
Methods
You can update Widget content by invoking the following methods.
Example Usage
Note: To avoid manually checking the existence of the Stackla.WidgetManager
global variable
we recommend you use the Expanded Tile Code Editor in our Nosto Admin Portal.
Available Methods
More Details
Take a look at our How to use “Filter and search” in a Widget article for more examples.
Looking for some help with CSS widget customisations? Check out our CSS guides for styling the Waterfall Widget, Carousel Widget, as well as the Widget Expanded Tile.