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):
| Property | Description |
|---|---|
| agGridApi | Underlying AG Grid API |
| adaptableContext | Custom application Context provided in AdaptableOptions.adaptableContext |
BaseContext
The AdaptTableReadyInfo 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:
| Property | Description |
|---|---|
| adaptableApi | Adaptable Api object |
| adaptableContext | Custom application Context provided in AdaptableOptions.adaptableContext |
| adaptableId | Id of current AdapTable instance |
| adaptableStateKey | Current Adaptable State Key |
| clientTimestamp | Time on user's computer |
| userName | Name 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:
- Adaptable API - for programmatic access to AdapTable
- AG Grid's
Grid API- for programmatic access to AG Grid