# ToolPanelState

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

Tool Panel section of Adaptable State, including Initial State.

`ToolPanels` is the list of panels and whether each is expanded or collapsed. When it is omitted, AdapTable shows a collapsed panel for every module and for every custom tool panel. `ModuleButtons` are the shortcut buttons in the tool panel; the default is an empty list.

```ts title="TypeScript"
export interface ToolPanelState extends BaseState 
```

###### Extends

[`BaseState`](https://www.adaptabletools.com/docs/reference/basestate.md)

## Properties

| Property | Type | Description | Default |
| --- | --- | --- | --- |
| [ModuleButtons](https://www.adaptabletools.com/docs/reference/toolpanelstate.md#modulebuttons) | `AdaptableModuleButtons` | AdapTable Module Buttons visible in ToolPanel | Empty Array |
| [ToolPanels](https://www.adaptabletools.com/docs/reference/toolpanelstate.md#toolpanels) | [`AdaptableToolPanelDefinition`](https://www.adaptabletools.com/docs/reference/adaptabletoolpaneldefinition.md)`[]` | Tool panels to show, and whether each is expanded or collapsed.<br/><br/>When omitted, every module and every custom tool panel is included, collapsed. |   |

## Property Details

### ModuleButtons

AdapTable Module Buttons visible in ToolPanel

```ts title="TypeScript"
ModuleButtons?: AdaptableModuleButtons;
```

###### Default Value

Empty Array

###### Property Value

`AdaptableModuleButtons`

### ToolPanels

Tool panels to show, and whether each is expanded or collapsed.

When omitted, every module and every custom tool panel is included, collapsed.

```ts title="TypeScript"
ToolPanels?: AdaptableToolPanelDefinition[];
```

###### Property Value

[`AdaptableToolPanelDefinition`](https://www.adaptabletools.com/docs/reference/adaptabletoolpaneldefinition.md)`[]`
