Class: Popup

Popup

A class representing a popup in the WebViewer UI.


Methods


add(items [, dataElement])

Adds popup items to the popup.

Parameters:
Name Type Argument Description
items Array.<Object>

An array of popup item objects to add.

dataElement string <optional>

The data element of the popup item to add the new items to. If not provided, items will be added to the root level.

Returns:

The Popup instance.

Type
this

getItems()

Retrieves all popup items in the popup.

Returns:

An array of all popup item objects in the popup.

Type
Array.<Object>

update( [items])

Update popup items in the popup.

Parameters:
Name Type Argument Description
items Array.<Object> <optional>

An array of popup item objects to update.

Returns:

The Popup instance.

Type
this