# ToolPanelButtonContext

Canonical page: https://www.adaptabletools.com/docs/reference/toolpanelbuttoncontext

Context required by functions when using a ToolPanel Button

```ts title="TypeScript"
export interface ToolPanelButtonContext extends BaseContext 
```

###### Extends

[`BaseContext`](https://www.adaptabletools.com/docs/reference/basecontext.md)

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [toolPanelState](https://www.adaptabletools.com/docs/reference/toolpanelbuttoncontext.md#toolpanelstate) | [`ToolPanelState`](https://www.adaptabletools.com/docs/reference/toolpanelstate.md) | Current ToolPanel State |
| [adaptableContext](https://www.adaptabletools.com/docs/reference/toolpanelbuttoncontext.md#adaptablecontext) | `any` | Custom application Context provided in `AdaptableOptions.adaptableContext` |

## Property Details

### toolPanelState

Current ToolPanel State

```ts title="TypeScript"
toolPanelState: ToolPanelState;
```

###### Property Value

[`ToolPanelState`](https://www.adaptabletools.com/docs/reference/toolpanelstate.md)

### adaptableContext

> *Inherited from [BaseContext](https://www.adaptabletools.com/docs/reference/basecontext.md)*

Custom application Context provided in `AdaptableOptions.adaptableContext`

```ts title="TypeScript"
adaptableContext: any;
```

###### Property Value

`any`
