getCurrentView()
Obtains the name of the view under which the current component was rendered.
Returns
The name of the view as a string.
Parameters
This API does not have parameters.
Usage example
In this example, the API returns the name of the view under which the current component was rendered.
const viewName = getPConnect().getCurrentView();
Previous topic getCurrentClassID() Next topic getDataObject(contextName)