Adaptable Context
Summary
- The
adaptableContextproperty in Adaptable Options allows individual context to be passed into AdapTable - This can then be leveraged at runtime as required
The adaptableContext property allows developers to provide application-specific "context".
Note
This object is very similar in intention to the AG Grid Context object
The property is set by developers in the root of Adaptable Options.
It is subsequently passed by AdapTable into BaseContext object, the base object supplied to most functions / callbacks in Adaptable Options, and the base of the xxxEventInfo object included in all Adaptable Events.
Hint
- Developers can provide services which they can subsequently leverage in Custom Predicates or Display Formats
- This demo illustrates using Adaptable Context by providing a TimeZone Service leveraged by Custom Predicates
adaptableContext
Record<string, any>Custom Context for the Application