getContainerType(context, name)
Obtains the type of a container.
Returns
The type of the container as a string.
Parameters
Name | Type | Description | Required |
context | string | The context of the container. | ✅ |
name | string | The name of the container. | ✅ |
Usage example
In this example, the API obtains the type of the container with the context
app
and name primary
.
PCore.getContainerUtils().getContainerType('app', 'primary');
Previous topic getContainerItems(target) Next topic getDataContextName(containerItemName)