# DataGridAdaptiveApi (@salmonui/data-grid)

> The DataGridAdaptiveApi interface of @salmonui/data-grid.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridAdaptiveApi

```ts
import type { DataGridAdaptiveApi } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: interface

```ts
interface DataGridAdaptiveApi {
    openSortDialog(): void;
    openFilterDialog(field?: string): void;
    isAdaptive(): boolean;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `openSortDialog` | `openSortDialog(): void;` |  | Opens the sort sheet (`showAdaptiveSortDialog`). |
| `openFilterDialog` | `openFilterDialog(field?: string): void;` |  | Opens the filter sheet of `field`, or the list of filterable columns (`showAdaptiveFilterDialog`). |
| `isAdaptive` | `isAdaptive(): boolean;` |  | True while the adaptive layout applies (derived from the measured container width). *Salmon* |
