The constructor for PContainer.
The PConnect object which is the configuration for this container
The ID of the container, used as a key to retrieve the container later.
The name of this container as retrieved by container.getComponentName()
The configuration of this container.
The ID of the container, used as a key to retrieve the container later.
The PConnect object which is the configuration for this container
A method to unsubscribe this container from listening to state changes
A stream of state update events.
In general updates are managed by the DX Engine. However, in some cases you may need to react to state changes in the component directly.
In this scenario a consumer can call container.updates.subscribe(fn), where the fn will be called when the state of the container changes.
Use container.config
to retrieve the latest state of the container.
Static
counterGet the children of this container. This list of children is managed by the DX Engine, where each child itself is the correct PContainer instance for a PConnect object coming from the Constellation Core.
Fully replace the children of this container.
To allow for cleanupm, the onDestroy method of the existing children are called before they are replaced.
Create a new child PContainer of the given type, with the given label.
The child will be created with the same context and container name as the current PContainer.
The label will be used to construct a new property name, and the value will be set to @P .<label>
.
The type of the child to be created.
The label of the child to be created.
The newly created PContainer.
Removes a file from the list of files to be uploaded. If the file has already been uploaded to Pega, the file is marked for deletion. If the file has not been uploaded to Pega, the file is removed from the list of files to be uploaded.
the ID of the file to be removed
Handles file upload event using the getAttachmentUtils() API from PCore.
The status for each file is tracked in the files attribute of this container.
For each file that is succesfully uploaded the uploaded
flag is set to true.
The state of the upload status is updated accordingly using getStateUtils() such that
finising the assignment attaches the correct information in the request to Pega.
a file input change event or a drag event
Static
getStatic
get
This class is a wrapper container for a PConnect object.
When constructed will store a copy of the fully resolved component props (see getComponentProps). The container holds a reference to all instantiated children.
A few life cycle hooks are initiated