The context object is passed to most of the callbacks used in ag-Grid, such as the cell renderers. ag-Grid does not place anything into the context, it is not used at all internally by ag-Grid. Its purpose is to allow the client application to pass details to custom callbacks.


In the example below, the drop down selects a reporting currency. This reporting currency selection is placed inside the context object, which is subsequently used by the a) cell renderer to calculate the value to display and b) the header of the last column, to display a particular header value.