Salesforce

Toggle event listeners in the aiWARE SDK

« Go Back
Information
Toggle event listeners in the aiWARE SDK
000004252
Public
Product Selection
aiWare - aiWare
Article Details

In the aiWARE SDK, event listeners listen for and handle events for widgets and panels. You can use event listeners to check when something important happens, like a UI element closing or a file uploading. Events unique to a widget or panel are documented on its page.

Add an event listener

To add an event listener, callĀ aiware.on().

aiware.on('event', function() {
});

Parameters

The parameters of on() are:

NameRequiredTypeDescription
eventTrueStringThe event to listen for.
callbackTrueFunctionThe callback to run.

Remove an event listener

To remove an event listener, call aiware.off().

aiware.off('event');

Parameters

The parameters of off() are:

NameRequiredTypeDescription
eventTrueStringThe event to stop listening for.
Additional Technical Documentation Information
Properties
2/12/2024 11:01 PM
2/12/2024 11:01 PM
2/12/2024 11:01 PM
Documentation
Documentation
000004252
Translation Information
English

Powered by