Last updated 2 months ago
You can subscribe to any of the , by adding a callback function that will execute whenever the subscribed event triggers.
addEventListener( eventName: ApiEvents, callback: (result: EventResponses) => void ): Promise<void>
eventName
callback
modelApi.addEventListener( "configurator_state_change", (res) => { // Your code here } );
Example
Name of the event that the method will subscribe to.
(result: ) => void Callback function which takes as parameter the result of the event you are subscribing to.
(result:
) => void
EventResponses
ApiEvents