Popup
- The property
kf.app.page.popupreturns the active popup instance opened inside the page - The property
kf.app.page.popup._idlets you the get ID of the popup - The method
kf.app.page.openPopup(id)returns this popup class instance.
Following methods are available for a popup instance
Popup parameters
getAllParameters()
To retrieve all parameters & its value of popup.
Syntax
let allParameters = await kf.app.page.popup.getAllParameters();Returns
Returns an object.
Example
{ "parameterName": "Sample value", "parameterName2": "Sample value 2"}getParameter()
To retrieve one of popup parameter’s value.
Parameters
| Parameters | type |
|---|---|
| parameterId | String |
Syntax
let value = await kf.app.page.popup.getParameter("parameterId");Close popup
Closes an active popup that is currently open in the page
Syntax
kf.app.page.popup.close();or If you already have popupInstance from openPopup() method
popupInstance.close();