resetContainers(containerInfo)
Resets a container to its initial state.
Returns
A promise associated with the action.
Parameters
Name | Type | Description | Required |
containerInfo | object | The object containing information about the container being reset. | ✅ |
Usage example
In this example, the API resets the container to its initial state.
const containerManager = getPConnect().getContainerManager();
containerManager.resetContainers({
context:"app",
name:"preview",
containerItems: ["app/preview_1","app/preview_2"]
});
Previous topic removeTransientItem(transientItemInfo) Next topic updateContainerItem(containerInfo)