Adaptable Ready Event

Summary

  • Event published by AdapTable as soon as it has initialised
  • Provides access to the Adaptable API object and AG Grid API object

The Adaptable Ready Event fires when AdapTable has finished initialising and is ready to be accessed.

AdaptableReadyInfo

It comprises an AdaptableReadyInfo object containing an agGridApi property (representing AG Grid's Api):

PropertyTypeDescription
agGridApiGridApi<TData>Underlying AG Grid API
adaptableContextanyCustom application Context provided in AdaptableOptions.adaptableContext

BaseContext

The AdapTableReadyInfo object inherits from the BaseContext object.

This contains the Adaptable API object which provides run-time, programmatic access to all AdapTable's objects and functionality, as well as the Adaptable Id, User Name and other properties:

PropertyTypeDescription
adaptableApiAdaptableApiAdaptable Api object
adaptableContextanyCustom application Context provided in AdaptableOptions.adaptableContext
adaptableIdstringId of current AdapTable instance
adaptableStateKeystringCurrent Adaptable State Key
clientTimestampDateTime on user's computer
userNamestringName of Current User

Event Subscription

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

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

Framework Components

The AdaptableReady event is particularly useful when using one of the Framework versions (ie. AdapTable React, AdapTable Angular or AdapTable Vue).

This is because it provides access to 2 very important objects: