SmartGroupModel.onInitialized(listener: Function)
Requires:
@ray-js/panel-sdk≥1.5.0
Description
Register a callback for the smart group model initialized event
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
listener | (instance: SmartGroupModel) => void | Yes | Callback invoked after initialization, receiving the current group instance as an argument |
Return Value
Type: number
Listener ID used to remove the listener via offInitialized