Home > @visualization-tools/core > OnEntityAddedToGroup
Emitted on entity being added to a group, not emitted if entity is already in the group.
Signature:
export declare class OnEntityAddedToGroup<TTraits> implements TOnEntityAddedToGroup<TTraits>
Implements: TOnEntityAddedToGroup<TTraits>
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(onEntityAddedToGroup) | Constructs a new instance of the OnEntityAddedToGroup class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| callbackKey | static |
“onEntityAddedToGroup” | |
| onEntityAddedToGroup | (…args: TEntityAddedToGroupArgs<TTraits>) => void |
| Method | Modifiers | Description |
|---|---|---|
| emit(plot, entity, group) | static |
|
| registerListener(plot, onEvent) | static |
|
| registerOneTimeListener(plot, onEvent) | static |