Theme Changed Event

An Adaptable Event which fires when the Theme in AdapTable changes.

note

This event fire irrespective of whether its a System or Custom Theme that has been selected

ThemeChangedInfo

The ThemeChangedInfo object contains just one property - the newly selected theme

caution

This property can be either the name of a (System) theme or the (Custom) Theme itself

PropertyDescription
themeSelected Theme: either name of a (System) theme or the (Custom) Theme itself

Event Subscription

Subscribing to the Event is done the same as with all Adaptable Events:

api.eventApi.on('ThemeChanged', (eventInfo: ThemeChangedInfo) => {
// do something with the info
});

More Information