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