@assigned
The @assigned decorator is used to mark a method of a NodeBlock or ConditionBlock that is invoked when the block is assigned to a node or condition. If there was another block attached to the node or condition, a reference to that previous block is supplied to the decorated method.
Decorator type
Method ℹ️
Applies to
Decorator signature
@assigned
Decorated method signature
(previous?: NodeBlock | ConditionBlock | undefined): void
Decorated method parameters
| Name | Type | Optional | Description |
|---|---|---|---|
previous | NodeBlock | ConditionBlock | undefined | Yes | Reference to the previous block that was attached to the node or condition (or undefined if there was no previous block attached). |