# Configuring the Settings Panel

Canonical page: https://www.adaptabletools.com/docs/ui-settings-panel-configuring

- The Settings Panel can be configured by developers at design-time, including:
  - order and visibility of the navigation groups
  - title, position, size and popup type of the window
  - whether navigation shows icons, descriptions, search, and collapse to an icon rail

Developers are able to configure and extend the Settings Panel in multiple ways.

This is achieved by using properties in [Settings Panel Options](https://www.adaptabletools.com/docs/technical-reference-settings-panel/index.md).

## Settings Panel Items & Order

AdapTable provides a default order for the items in the Settings Panel (displayed on the left on the Control).

### Default Settings Panel Order

The default navigation groups are:

**Grid & UI**
`GridInfo`
`ColumnInfo`
`Dashboard`
`ToolPanel`
`StatusBar`
`Theme`

**Layout**
`Layout`
`CalculatedColumn`
`FreeTextColumn`
`CustomSort`
`Charting`
`CellSummary`

**Formatting**
`FormatColumn`
`StyledColumn`
`FlashingCell`

**Filtering & Search**
`QuickSearch`
`GridFilter`
`ColumnFilter`
`DataSet`
`NamedQuery`

**Annotating & Messaging**
`Alert`
`Note`
`Comment`
`SystemStatus`

**Export & Import**
`Export`
`DataImport`

**Editing**
`BulkUpdate`
`SmartEdit`
`PlusMinus`
`Shortcut`
`DataChangeHistory`

**Administration**
`TeamSharing`
`StateManagement`

If the default order provided by AdapTable is not appropriate, the `navigation` property in [Settings Panel Options](https://www.adaptabletools.com/docs/technical-reference-settings-panel/index.md) can be used to provide a different grouped layout for the Settings Panel.

### `navigation`

Grouped navigation in the Settings Panel

All [Modules](https://www.adaptabletools.com/docs/technical-reference-adaptable-modules/index.md) which do not have an [Entitlement](https://www.adaptabletools.com/docs/handbook-permissioning/index.md) of *Hidden* appear in the Settings Panel. 

AdapTable lists all of these in conceptual groups (see DeepDive above for more details).

Use the `navigation` property to return a different set of groups and modules. 

Each group has 2 properties:
- `label` - section heading (use an empty string for items without a heading)
- `items` - module or custom panel names

```ts {8}
// Create a new grouped order for the Settings Panel
// Include a Custom Settings Panel ('App Settings') as the first group
const adaptableOptions: AdaptableOptions = {
  settingsPanelOptions: {
    customSettingsPanels: [
      {name: 'App Settings', frameworkComponent: AppSettingsPanel},
    ],
    navigation: (_context, _defaultNavigation) => ({
      groups: [
        {label: 'Application', items: ['App Settings']},
        {label: 'Important', items: ['CalculatedColumn', 'FormatColumn']},
        {label: 'UI', items: ['Dashboard', 'ToolPanel']},
        {label: 'Administration', items: ['Alert', 'CustomSort', 'Export']},
        {label: 'Support', items: ['GridInfo', 'TeamSharing', 'Theme']},
      ],
    }),
  },
};
```

Grouped `navigation` replaces the legacy flat shape. Legacy flat navigation is still accepted; see [Version 23 release note](https://www.adaptabletools.com/support/version-230-release-note) if you need to migrate stored configuration.

**Example: Setting Items in Settings Panel**

Settings Panel: Setting order & visibility of Items

- This demo shows the Settings Panel with a changed order of the Panel Modules
- We have removed some items, changed the order, and split the nav into separate groups

Demo project (Vanilla); the files without a marker are shown below:

```text
src/
  adaptableOptions.ts
  agGridModules.ts     [template]
  columnDefs.ts        [template]
  gridOptions.ts       [template]
  index.ts             [template]
  onAdaptableReady.ts  [template]
  rowData.ts           [template]
  styles.css           [template]
index.html             [template]
package.json           [template]
tsconfig.json          [template]
```

Files marked `[template]` are the same in every demo; see the [demo template](https://www.adaptabletools.com/llms/demo-template.md#vanilla).

**`src/adaptableOptions.ts`**

```ts
import {AdaptableOptions} from '@adaptabletools/adaptable';
import {WebFramework} from './rowData';

export const adaptableOptions: AdaptableOptions<WebFramework> = {
  primaryKey: 'id',
  adaptableId: 'Settings Panel Order',
  settingsPanelOptions: {
    navigation: (_context, _defaultNavigation) => ({
      groups: [
        {label: 'Important', items: ['CalculatedColumn', 'FormatColumn']},
        {label: 'UI', items: ['Dashboard', 'ToolPanel']},
        {label: 'Administration', items: ['Alert', 'CustomSort', 'Export']},
        {label: 'Support', items: ['GridInfo', 'TeamSharing', 'Theme']},
      ],
    }),
  },
  initialState: {
    StatusBar: {
      StatusBars: [
        {
          Key: 'Center Panel',
          StatusBarPanels: ['SettingsPanel'],
        },
      ],
    },
    Theme: {CurrentTheme: 'dark'},
    Layout: {
      CurrentLayout: 'Standard Layout',
      Layouts: [
        {
          Name: 'Standard Layout',
          TableColumns: [
            'name',
            'github_stars',
            'language',
            'week_issue_change',
            'description',
            'created_at',
            'has_wiki',
            'pushed_at',
            'open_issues_count',
          ],
          AutoSizeColumns: true,
        },
      ],
    },
  },
};
```

## Other Settings Panel Options

There are many other properties in [Settings Panel Options](https://www.adaptabletools.com/docs/technical-reference-settings-panel/index.md) which can be used to set up the Settings Panel.

These properties include (full details of each option is shown below):

- **title** displayed
- **icon** displayed
- **position** and **size**
- **popup type** (i.e. modal or window)
- **navigation display** — icons, descriptions, search, and collapse to an icon rail
- **Grid Info tabs** — which tabs appear in [Grid Info](https://www.adaptabletools.com/docs/ui-settings-panel-grid-info/index.md)

Users can also configure the Settings Panel to display [Custom Panels](https://www.adaptabletools.com/docs/ui-settings-panel-custom/index.md)

**Example: Customising the Settings Panel**

Settings Panel: Configuring for personal requirements

- This demo shows the Settings Panel with some configuration properties set, including:
  - Setting `popupType` to `'window'` so the panel is draggable and respects `size`/`position`
  - Changing the title to 'Config Viewer'
  - Displaying the [Application Icon](https://www.adaptabletools.com/docs/ui-tutorial-creating-icon/index.md) (which was provided in [User Interface Options](https://www.adaptabletools.com/docs/technical-reference-ui/index.md))
  - Moving the position to 15, 15
  - Reducing the size to 800 x 400
  - Hiding the Module Icons in the list (via `displayOptions`)
### Expand to see the Settings Panel Options

```ts
settingsPanelOptions: {
  popupType: 'window',
  size: {
    width: 800,
    height: 400,
  },
  position: {
    x: 15,
    y: 15,
  },
  icon: 'ApplicationIcon',
  title: 'Config Viewer',
  displayOptions: {
    showModuleIcons: false,
  },
},
```

Demo project (Vanilla); the files without a marker are shown below:

```text
src/
  adaptableOptions.ts
  agGridModules.ts     [template]
  columnDefs.ts        [template]
  gridOptions.ts       [template]
  index.ts             [template]
  onAdaptableReady.ts  [template]
  rowData.ts           [template]
  styles.css           [template]
index.html             [template]
package.json           [template]
tsconfig.json          [template]
```

Files marked `[template]` are the same in every demo; see the [demo template](https://www.adaptabletools.com/llms/demo-template.md#vanilla).

**`src/adaptableOptions.ts`**

```ts
import {AdaptableOptions} from '@adaptabletools/adaptable';
import {WebFramework} from './rowData';

export const adaptableOptions: AdaptableOptions<WebFramework> = {
  primaryKey: 'id',
  adaptableId: 'Configuring Settings Panel',
  settingsPanelOptions: {
    popupType: 'window',
    size: {
      width: 800,
      height: 400,
    },
    position: {
      x: 15,
      y: 15,
    },
    icon: 'ApplicationIcon',
    title: 'Config Viewer',
    displayOptions: {
      showModuleIcons: false,
    },
  },
  userInterfaceOptions: {
    applicationIcon: {
      src: 'https://img.icons8.com/color/100px/bungalow',
    },
  },
  initialState: {
    StatusBar: {
      StatusBars: [
        {
          Key: 'Center Panel',
          StatusBarPanels: ['SettingsPanel'],
        },
      ],
    },
    Theme: {CurrentTheme: 'dark'},
    Layout: {
      CurrentLayout: 'Standard Layout',
      Layouts: [
        {
          Name: 'Standard Layout',
          TableColumns: [
            'name',
            'github_stars',
            'language',
            'week_issue_change',
            'description',
            'created_at',
            'has_wiki',
            'pushed_at',
            'open_issues_count',
          ],
          AutoSizeColumns: true,
        },
      ],
    },
  },
};
```

### Settings Panel Type

By default the Settings Panel shows as a modal, meaning it always remains in a fixed position on top of the grid.

However it is possible to configure the Settings Panel to be a window, which comes with some advantages:
- you can specify a `size` (see below)
- you can specify a `position` (see below)
- the window is movable, draggable and resizable

With the default value of `modal`, you cannot drag, move or resize the window (nor set associated properties)

### `popupType`

Configures how the Settings Panel Popup Behaves

The Settings Panel has 2 modes for display:

- `modal` - centred on screen with a backdrop; cannot be moved or resized (the default value)
- `window` - draggable, resizable panel with no backdrop; honours the `size` and `position` options

```ts {4}
// Make the Settings Panel a draggable, resizable window
const adaptableOptions: AdaptableOptions = {
  settingsPanelOptions: {
    popupType: 'window',
  },
};
```

### Showing Settings Panel Button

The [Dashboard](https://www.adaptabletools.com/docs/ui-dashboard/index.md) always shows a **Home control** that opens the Settings Panel. It is not a Module Button and cannot be removed in the Dashboard UI.

To keep a Settings Panel button visible in the [AdapTable Tool Panel](https://www.adaptabletools.com/docs/ui-tool-panel/index.md), use `alwaysShowInToolPanel`.

### `alwaysShowInToolPanel`

Whether the Settings Panel button is always displayed in the Adaptable Tool Panel

The [AdapTable ToolPanel Component](https://www.adaptabletools.com/docs/ui-tool-panel/index.md) contains a collection of Module Buttons.

Each button opens a different page in the [Settings Panel](https://www.adaptabletools.com/docs/ui-settings-panel/index.md), including the `SettingsPanel` Modules Button which opens the Settings Panel on the first page.

By default this is the **only** Module Button that appears in the Tool Panel.

Users are able, however, to remove this Button by changing the Modules Buttons collection in the Tool Panel UI.

Setting this property to true means that this Button can never be removed (in the UI).

```ts {4}
// Ensure the Settings Panel is always displayed in the AdapTable ToolPanel Component
const adaptableOptions: AdaptableOptions = {
  settingsPanelOptions: {
    alwaysShowInToolPanel: true,
  },
};
```

### Icons

The `icon` property sets the Icon displayed at the top left of the Settings Panel (and on the Dashboard Home control).

Whether Module names show an icon in the left-hand list is configured under [Navigation Display](#navigation-display). The Glyph used for each Module is set in [User Interface Options](https://www.adaptabletools.com/docs/technical-reference-ui/index.md).

### `icon`

Which Icon to display for the Settings Panel

This property sets which Icon will be used by AdapTable in relation to the Settings Panel.

There are 3 options available:

- `ConfigurationIcon` - AdapTable will use the 'configure' icon (the default option)
- `ApplicationIcon` - use the `applicationIcon` property as set in [User Interface Options](https://www.adaptabletools.com/docs/technical-reference-ui/index.md)
- an [`AdaptableIcon`](https://www.adaptabletools.com/docs/reference/adaptableicon.md) object - a custom Icon provided by the User

See the [Guide to the Adaptable Icon](https://www.adaptabletools.com/docs/ui-tutorial-creating-icon/index.md) for more information

```ts {4}
// Use the Icon set as the Application Icon for the Settings Panel
const adaptableOptions: AdaptableOptions = {
  settingsPanelOptions: {
    icon: 'ApplicationIcon',
  },
};
```

### `alternativeModuleIcons`

Alternative icons to use for Adaptable Modules in the UI

  [`AlternativeModuleIcon[]`](https://www.adaptabletools.com/docs/reference/alternativemoduleicon.md)

Replaces the Module Glyph in this Settings Panel list (and in Dashboard / Tool Panel buttons, Status Bar and menus).

`alternativeModuleIcons` is set on **`userInterfaceOptions`**, not `settingsPanelOptions`.

```ts {3-6}
userInterfaceOptions: {
  alternativeModuleIcons: [
    { adaptableModule: 'Layout', newIcon: { name: 'grid' } },
    { adaptableModule: 'Export', newIcon: { name: 'download' } },
  ],
},
```

### Navigation Display

The left-hand navigation can show module icons, short descriptions, a search field, and a collapse control (icon rail).

These are set on `displayOptions` in [Settings Panel Options](https://www.adaptabletools.com/docs/technical-reference-settings-panel/index.md).

### `displayOptions.showModuleIcons`

Whether to show Icons for each Module when navigation is expanded

Collapsed (icon-rail) navigation always shows icons. When expanded, set this to `false` to list Module names only.

```ts {5}
const adaptableOptions: AdaptableOptions = {
  settingsPanelOptions: {
    displayOptions: {
      showModuleIcons: false,
    },
  },
};
```

### `displayOptions.showModuleDescriptions`

Whether to show Description subtitles under each Module

Each Module (and Custom Panel) can show a short subtitle under its name. Set this to `false` to hide those descriptions.

```ts {5}
const adaptableOptions: AdaptableOptions = {
  settingsPanelOptions: {
    displayOptions: {
      showModuleDescriptions: false,
    },
  },
};
```

### `displayOptions.showNavigationSearch`

Whether to show the module search field above Settings Panel navigation

The search field filters the left-hand Module list. Set this to `false` to hide it.

```ts {5}
const adaptableOptions: AdaptableOptions = {
  settingsPanelOptions: {
    displayOptions: {
      showNavigationSearch: false,
    },
  },
};
```

### `displayOptions.enableCollapseView`

Whether users can collapse Settings Panel navigation to an icon rail

When `true` (the default), users can collapse the left-hand navigation to icons only.

Set this to `false` to keep the full Module list expanded.

```ts {5}
const adaptableOptions: AdaptableOptions = {
  settingsPanelOptions: {
    displayOptions: {
      enableCollapseView: false,
    },
  },
};
```

Top-level `showModuleIcons` and `showModuleDescriptions` are deprecated — use `displayOptions` instead.

### Size and Position

AdapTable provides 2 properties that can be used to set the initial size and location of the Settings Panel:

Both of these are only applied if `popupType` is `'window'`

- `position` - using x, y values
- `size` - setting width and height

### `position`

Where the Settings Panel is positioned

By default AdapTable will put the Settings Panel in the middle of the Screen.

Use this property to provide a different location.

The `position` object has 2 numeric properties - `x` and `y`:

```ts {4-8}
// The initial position of the Settings Panel window
const adaptableOptions: AdaptableOptions = {
  settingsPanelOptions: {
    popupType: 'window',
    position: {
      x: 100,
      y: 200,
    },
  },
};
```

### `size`

Size of the Settings Panel

By default AdapTable will calculate the size of the Settings Panel using the current screen size.

Use this property to provide an actual size.

The `size` object has 2 numeric properties - `width` and `height`:

```ts {4-8}
// The initial size of the Settings Panel window
const adaptableOptions: AdaptableOptions = {
  settingsPanelOptions: {
    popupType: 'window',
    size: {
      width: 800,
      height: 450,
    },
  },
};
```

### Settings Panel Title

End users never see the internal name “Settings Panel”. The chrome, menus and tooltips use `title` when you set it, otherwise `adaptableId` (if it is a meaningful name), otherwise `Grid Settings`.

### `title`

Title of the Settings Panel

Use this property to set the Title of the Settings Panel — what appears at the top of the panel, on the Dashboard Home control, and in *Open …* menu items. 

```ts {4}
// The title of the Settings Panel
const adaptableOptions: AdaptableOptions = {
  settingsPanelOptions: {
    title: 'My Settings',
  },
};
```

### Grid Info Tabs

[Grid Info](https://www.adaptabletools.com/docs/ui-settings-panel-grid-info/index.md) is the first page in the Settings Panel and shows four tabs by default: Summary, Layout, State and Options.

### `gridInfoTabs`

Which Tabs to show in Grid Info

Pass the subset of tabs to display. Omit a tab (for example `Grid Options`) to hide it.

```ts {4}
// Show only Summary and State in Grid Info
const adaptableOptions: AdaptableOptions = {
  settingsPanelOptions: {
    gridInfoTabs: ['Grid Summary', 'Grid State'],
  },
};
```

### `showAgGridVersion`

Displays the AG Grid version in Grid Info

Shown on the Summary tab. Set this to `false` to hide it.

```ts {3}
userInterfaceOptions: {
  showAgGridVersion: false,
},
```

## Hiding Delete Warnings

The Settings Panel allows users to delete AdapTable Objects (where their [Entitlements](https://www.adaptabletools.com/docs/handbook-permissioning/index.md) allow).

Each time this happens, AdapTable will show a warning asking the user to confirm the deletion.

If this becomes tiresome for Users, there are 2 ways to hide warnings:

- design time: set `disableDeleteConfirmation` property in [User Interface Options](https://www.adaptabletools.com/docs/technical-reference-ui/index.md)
- run time - click the "Do not show this again" checkbox when the first warning appears

With second option, the suspension is only active for the current session, and isn't reapplied on application re-start

### `disableDeleteConfirmation`

Hides confirmation dialog which displays whenever an Adaptable Object is deleted

By default AdapTable displays a warning whenever an AdapTable Object is about to be deleted.

Set this property to **true** to stop users seeing this warning.

```ts {4}
// Don't display a warning when deleting an Adaptable Object
const adaptableOptions: AdaptableOptions = {
  userInterfaceOptions: {
    disableDeleteConfirmation: true,
  },
};
```
