# AdapTable Status Bar

Canonical page: https://www.adaptabletools.com/docs/ui-status-bar

- AdapTable places module UI inside the [AG Grid Status Bar](https://www.ag-grid.com/javascript-data-grid/component-status-bar/) by registering up to **three** `AdaptableStatusPanel` regions (`align`: `left`, `center`, or `right`)
- Each region can contain **many** module status chips; developers set the initial list in Status Bar State, and users rearrange chips at run time
- There is **no** custom status panel API (unlike [Custom Toolbars](https://www.adaptabletools.com/docs/ui-dashboard-custom-toolbars/index.md) or [Custom Tool Panels](https://www.adaptabletools.com/docs/ui-tool-panel-custom-tool-panel/index.md)) — only module panels shipped by AdapTable
- Some modules expose rich in-place controls; others provide a shortcut that opens the module in the [Settings Panel](https://www.adaptabletools.com/docs/ui-settings-panel/index.md)

Status Bars allow AdapTable content to be displayed and accessed from inside the AG Grid Status Bar.

Module content is supplied via [Status Bar Panels](#module-status-bar-panels) — one chip per eligible module.

This is particularly useful when screen estate is tight; many apps put Layout, Quick Search, or filters in the status bar instead of the [Dashboard](https://www.adaptabletools.com/docs/ui-dashboard/index.md).

## Topics in this Section

| Topic                                                                                       | Summary                                                                              |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| This page                                                                                   | AG Grid slots, module panels, mixing with AG Grid components, run-time configuration |
| [Configuring the Status Bar](https://www.adaptabletools.com/docs/ui-status-bar-configuring/index.md)          | `gridOptions.statusBar` + Status Bar Initial State                                   |
| [Status Bar Technical Reference](https://www.adaptabletools.com/docs/technical-reference-status-bar/index.md) | Status Bar State, `AdaptableStatusBarPanel`, `statusBarApi`                          |

## Status Bar locations

Each `AdaptableStatusPanel` registration in AG Grid `statusBar.statusPanels` occupies one **region** (`align`: `left`, `center`, or `right` — AG Grid spelling).

- You can register **at most three** AdapTable regions (one per align value is the usual pattern)
- Each region can list **many** module chips in `StatusBarPanels` — there is no fixed cap on chips per region
- When the chips do not fit the grid width, the [AG Grid Status Bar](https://ag-grid.com/react-data-grid/status-bar/) scrolls horizontally; each chip keeps its size and its popups open next to it

- The contents (i.e. Module Status Panels) of each AdapTable Status Bar Panel **can** be changed in the AdapTable UI
- However the location and number of Status Panels can only be set at Design Time

**Example: AdapTable Status Bar**

Using the Status Bar in AdapTable

- This demo contains 3 Adaptable Status Bar Panels populated as follows:
  - **Left Status Bar**: `CellSummary`, `ColumnFilter`
  - **Center Status Bar**: `GridFilter`
  - **Right Status Bar**: `Layout`, `Theme`
### Expand to see how the Status Bars are configured

The Status Bars are defined inside Grid Options:
```ts
export const gridOptions: GridOptions = {
  statusBar: {
    statusPanels: [
      {
        key: 'Left Panel',
        statusPanel: 'AdaptableStatusPanel',
        align: 'left',
      },
      {
        key: 'Center Panel',
        statusPanel: 'AdaptableStatusPanel',
        align: 'center',
      },
      {
        key: 'Right Panel',
        statusPanel: 'AdaptableStatusPanel',
        align: 'right',
      },
    ],
  },
};
```
and then referenced in Initial Adaptable State:
```ts
StatusBar: {
  StatusBars: [
    {
      Key: 'Left Panel',
      StatusBarPanels: ['CellSummary', 'ColumnFilter'],
    },
    {
      Key: 'Center Panel',
      StatusBarPanels: ['GridFilter'],
    },
    {
      Key: 'Right Panel',
      StatusBarPanels: ['Layout', 'Theme'],
    },
  ],
},
```

- Open the Status Bar page of the Settings Panel and add other Status Panels
  

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

```text
src/
  adaptableOptions.ts
  agGridModules.ts     [template]
  columnDefs.ts        [template]
  gridOptions.ts
  index.ts             [template]
  onAdaptableReady.ts
  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: 'Basic Status Bar',
  initialState: {
    Dashboard: {
      ModuleButtons: ['StatusBar'],
    },
    StatusBar: {
      StatusBars: [
        {
          Key: 'Left Panel',
          StatusBarPanels: ['CellSummary', 'ColumnFilter'],
        },
        {
          Key: 'Center Panel',
          StatusBarPanels: ['GridFilter'],
        },
        {
          Key: 'Right Panel',
          StatusBarPanels: ['Layout', 'Theme'],
        },
      ],
    },
    Theme: {CurrentTheme: 'dark'},
    Layout: {
      CurrentLayout: 'Standard Layout',
      Layouts: [
        {
          Name: 'Standard Layout',
          TableColumns: [
            'name',
            'language',
            'github_stars',
            'license',
            'open_issues_count',
            'closed_issues_count',
            'open_pr_count',
            'closed_pr_count',
            'updated_at',
            'pushed_at',
            'github_watchers',
            'has_projects',
            'has_pages',
            'week_issue_change',
          ],
          ColumnFilters: [
            {
              ColumnId: 'license',
              Expression: '[license] = "MIT License"',
            },
          ],
          GridFilter: {
            Expression: '[closed_issues_count]> [closed_pr_count] ',
          },
          AutoSizeColumns: true,
        },
        {
          Name: 'Grouped Layout',
          TableColumns: [
            'name',
            'language',
            'open_issues_count',
            'week_issue_change',
          ],
          RowGroupedColumns: ['language'],
          AutoSizeColumns: true,
        },
      ],
    },
  },
};
```

**`src/gridOptions.ts`**

```ts
import {GridOptions, themeBalham} from 'ag-grid-enterprise';
import {rowData} from './rowData';
import {columnDefs} from './columnDefs';

export const gridOptions: GridOptions = {
  theme: themeBalham,
  defaultColDef: {
    resizable: true,

    sortable: true,
    editable: true,
    filter: true,
    floatingFilter: true,
  },
  columnDefs: columnDefs,
  rowData: rowData,
  sideBar: true,

  statusBar: {
    statusPanels: [
      {
        key: 'Left Panel',
        statusPanel: 'AdaptableStatusPanel',
        align: 'left',
      },
      {
        key: 'Center Panel',
        statusPanel: 'AdaptableStatusPanel',
        align: 'center',
      },
      {
        key: 'Right Panel',
        statusPanel: 'AdaptableStatusPanel',
        align: 'right',
      },
    ],
  },
  suppressMenuHide: true,
  cellSelection: true,
};
```

**`src/onAdaptableReady.ts`**

```ts
import {AdaptableReadyInfo} from '@adaptabletools/adaptable';

export const onAdaptableReady = ({adaptableApi}: AdaptableReadyInfo) => {
  setTimeout(() => {
    adaptableApi.gridApi.selectCellRange({
      columnIds: ['github_stars'],
      rowIndexStart: 2,
      rowIndexEnd: 7,
    });
  }, 100);
};
```

## Module Status Bar Panels

Each eligible AdapTable module can contribute a status chip. The full set of module ids is the [`AdaptableStatusBarPanel`](https://www.adaptabletools.com/docs/reference/adaptablestatusbarpanel.md) union in the technical reference.

Many chips are **shortcuts** — they open that module’s page in the [Settings Panel](https://www.adaptabletools.com/docs/ui-settings-panel/index.md).

The table below lists modules that ship **in-place** status bar UI (controls without opening the full Settings Panel first):

| Adaptable Module                                                    | Status Panel Description                                   |
| ------------------------------------------------------------------- | ---------------------------------------------------------- |
| [Alerts](https://www.adaptabletools.com/docs/handbook-alerting/index.md)              | Displays any Alerts which have fired                       |
| [Cell Summary](https://www.adaptabletools.com/docs/handbook-summarising/index.md)     | Shows all the Cell Summaries available                     |
| [Charts](https://www.adaptabletools.com/docs/handbook-charts/index.md)                | Displays any saved Charts                                  |
| [Column Filters](https://www.adaptabletools.com/docs/handbook-column-filter/index.md) | Lists any currently applied Column Filters                 |
| [Data Set](https://www.adaptabletools.com/docs/handbook-data-sets/index.md)           | Users can switch between available Data Sets               |
| [Export](https://www.adaptabletools.com/docs/handbook-exporting/index.md)             | All Reports can be sent to all Destinations                |
| [Grid Filter](https://www.adaptabletools.com/docs/handbook-grid-filter/index.md)      | The currently applied Grid Filter can be seen (and edited) |
| [Layout](https://www.adaptabletools.com/docs/handbook-layouts/index.md)               | Users can switch between the available Layouts             |
| [Quick Search](https://www.adaptabletools.com/docs/handbook-quick-search/index.md)    | Quick Search input where searches can be run               |
| [Theme](https://www.adaptabletools.com/docs/handbook-theming/index.md)                | The Current Theme can be changed                           |

All the AG Grid Status Panels (e.g. `FilteredRowCount`) are, of course, still available for selection

**Example: AdapTable and AG Grid Status Bars**

Integrating AdapTable & AG Grid Status Bars

- This demo shows how you can use the Adaptable Status Bar Panels together with those provided by AG Grid.
- There are 3 Status Panels defined, which together include 5 Status Bar Panels (a mixture of AG Grid and AdapTable):
  - `Left` - AG Grid's `Row Count`
  - `Center`: AdapTable `Export`
  - `Right`: AG Grid `Filtered Row Count`, with AdapTable `ColumnFilter` and `CellSummary` on either side

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

```text
src/
  adaptableOptions.ts
  agGridModules.ts     [template]
  columnDefs.ts        [template]
  gridOptions.ts
  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: 'Integrated Status Bar',
  initialState: {
    Dashboard: {
      ModuleButtons: ['StatusBar'],
    },
    StatusBar: {
      StatusBars: [
        {
          Key: 'Adaptable Status Panel Center',
          StatusBarPanels: ['Export'],
        },
        {
          Key: 'Adaptable Status Panel Right1',
          StatusBarPanels: ['CellSummary'],
        },
        {
          Key: 'Adaptable Status Panel Right2',
          StatusBarPanels: ['ColumnFilter'],
        },
      ],
    },
    Theme: {CurrentTheme: 'dark'},
    Layout: {
      CurrentLayout: 'Standard Layout',
      Layouts: [
        {
          TableColumns: [
            'name',
            'language',
            'github_stars',
            'license',
            'created_at',
            'has_wiki',
            'updated_at',
            'pushed_at',
            'github_watchers',
            'description',
            'open_issues_count',
            'closed_issues_count',
            'open_pr_count',
            'closed_pr_count',
            'has_projects',
            'has_pages',
            'week_issue_change',
          ],
          ColumnFilters: [
            {
              ColumnId: 'github_stars',
              Expression: '[github_stars] > 20000',
            },
          ],
          Name: 'Standard Layout',
          AutoSizeColumns: true,
        },
      ],
    },
  },
};
```

**`src/gridOptions.ts`**

```ts
import {GridOptions, themeBalham} from 'ag-grid-enterprise';
import {rowData} from './rowData';
import {columnDefs} from './columnDefs';

export const gridOptions: GridOptions = {
  theme: themeBalham,
  defaultColDef: {
    resizable: true,

    sortable: true,
    editable: true,
    filter: true,
    floatingFilter: true,
  },
  columnDefs: columnDefs,
  rowData: rowData,
  sideBar: true,

  statusBar: {
    statusPanels: [
      {statusPanel: 'agTotalRowCountComponent', align: 'left'},

      {
        key: 'Adaptable Status Panel Center',
        statusPanel: 'AdaptableStatusPanel',
        align: 'center',
      },
      {
        key: 'Adaptable Status Panel Right1',
        statusPanel: 'AdaptableStatusPanel',
        align: 'right',
      },
      {statusPanel: 'agFilteredRowCountComponent', align: 'right'},
      {
        key: 'Adaptable Status Panel Right2',
        statusPanel: 'AdaptableStatusPanel',
        align: 'right',
      },
    ],
  },
  suppressMenuHide: true,
  cellSelection: true,
};
```

## Design-time and run-time configuration

At **design time**, you register `AdaptableStatusPanel` entries in AG Grid and set initial module chips in Status Bar State. See [Configuring the Status Bar](https://www.adaptabletools.com/docs/ui-status-bar-configuring/index.md).

At **run time**, users with sufficient [Entitlements](https://www.adaptabletools.com/docs/handbook-permissioning/index.md) open the Status Bar section of the [Settings Panel](https://www.adaptabletools.com/docs/ui-settings-panel/index.md). They drag module chips between the regions you defined — they **cannot** add regions or change `left` / `center` / `right` placement (that remains in `gridOptions`).

- Module chips respect per-module entitlements — modules marked *Hidden* do not appear as available chips

### FAQ

**How does the Status Bar relate to AG Grid?**
AG Grid owns the status bar strip and any native panels (row count, aggregation, and so on). You register **`AdaptableStatusPanel`** entries with a unique `key` and `align`. AdapTable owns **`StatusBar` Initial State** — which module chips appear in each keyed region.

**Can we provide custom content like Dashboard custom toolbars or Tool Panel custom panels?**
No. The Status Bar only supports **module** panels defined by AdapTable. There is no `statusBarOptions` or custom render hook today.

**When should we use the Status Bar instead of the Dashboard or Tool Panel?**
Use the **Status Bar** for compact, always-visible module shortcuts at the bottom of the grid. Use the **Dashboard** for richer tabs and pinned toolbars above the grid. Use the **Tool Panel** when you prefer the collapsible sidebar. Many apps combine Status Bar chips with a hidden or minimal Dashboard — see [Configuring the Status Bar](https://www.adaptabletools.com/docs/ui-status-bar-configuring/index.md).

**Can I still use AG Grid status bar panels with AdapTable?**
Yes — mix AG Grid components and `AdaptableStatusPanel` regions in the same `statusPanels` array.

**Can I change the Status Bar programmatically?**
Use **`statusBarApi`** — for example `getAdaptableStatusBars`, `setStatusBarPanels`, `getAgGridStatusPanels`. See [Status Bar API](https://www.adaptabletools.com/docs/technical-reference-status-bar/index.md#status-bar-api).
