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
counterGets the action buttons that are associated with the assignment.
The action buttons as an object with two properties:
Get 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.
The navigation associated with the assignment. This is an object with two properties:
Handles a click of the user on an action button. The jsAction associated with each button is used to call the corresponding method on the ActionsAPI of the container. When an assignment is canceled, the EVENT_CANCEL event will be published additionaly.
The action button on which the click is iniated
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.
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