# SettingsPanelApi

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

Provides run-time access to the Settings Panel

```ts title="TypeScript"
export interface SettingsPanelApi 
```

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [closeSettingsPanel()](https://www.adaptabletools.com/docs/reference/settingspanelapi.md#closesettingspanel) | `void` | Closes Settings Panel |
| [openCustomSettingsPanel(name)](https://www.adaptabletools.com/docs/reference/settingspanelapi.md#opencustomsettingspanel) | `void` | Opens Settings Panel with the Custom Settings Panel, provided by name, displayed |
| [openSettingsPanel(moduleName)](https://www.adaptabletools.com/docs/reference/settingspanelapi.md#opensettingspanel) | `void` | Opens Settings Panel and displays specified Module (if provided) or first available one |

## Method Details

### closeSettingsPanel

Closes Settings Panel

```ts title="TypeScript"
closeSettingsPanel(): void;
```

###### Returns

`void`

### openCustomSettingsPanel

Opens Settings Panel with the Custom Settings Panel, provided by name, displayed

```ts title="TypeScript"
openCustomSettingsPanel(name: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| name | `string` | name of Custom Settings Panel to display |

###### Returns

`void`

### openSettingsPanel

Opens Settings Panel and displays specified Module (if provided) or first available one

```ts title="TypeScript"
openSettingsPanel(moduleName?: AdaptableModule): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| moduleName | [`AdaptableModule`](https://www.adaptabletools.com/docs/reference/adaptablemodule.md) | name of Module to display |

###### Returns

`void`
