new Popup()
Methods
-
add(items [, dataElement])
-
Adds popup items to the popup.
Parameters:
Name Type Argument Description itemsArray.<Object> An array of popup item objects to add.
dataElementstring <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 itemsArray.<Object> <optional>
An array of popup item objects to update.
Returns:
The Popup instance.
- Type
- this