# context

Passes shared app context to callbacks and the Grid API, such as app-managed permissions and services.

Canonical: https://grid.syidax.com/docs/options/context/

<a id="meaning"></a>

## What does this API do?

Passes shared app context to callbacks and the Grid API, such as app-managed permissions and services.

<a id="contract"></a>

## Exact input and result types

```typescript
context: unknown
```

| Item | Value |
| --- | --- |
| JavaScript name | context |
| HTML attribute | context |
| Default | undefined |
| Input type | unknown |

<a id="usage"></a>

## Usage flow

Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<a id="recipes"></a>

## Feature explanations and examples

- [Data and events](https://grid.syidax.com/docs/guides/data-event-access.md) — Grid APIs read or change the current state; events report the results of user interactions or data changes. Combine them to build save buttons, detail panels, and change histories.
