addTransientItem(containerInfo)
Adds a transient item to the current context. The transient item contains values that have not been submitted with the content.
Returns
The newly created transient item ID as a string.
Parameters
Name | Type | Description | Required |
containerInfo | object | The JSON object containing information about the unique ID of the transient item and the data containing the properties and their values. | ✅ |
Usage example
In this example, the API adds a transient item along with its data to the current context.
const containerManager = getPConnect().getContainerManager();
containerManager.addTransientItem({
id: 'uniqueIdentifier',
data: {
"Prop1": "valueA",
"Prop2": "valueB"
}
});
Previous topic addContainerItem(containerInfo) Next topic initializeContainers(containerInfo)