# DataGridDataUiApi (@salmonui/data-grid)

> The DataGridDataUiApi interface of @salmonui/data-grid: DataGridApi methods of the data-state UI.

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

```ts
import type { DataGridDataUiApi } 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 DataGridDataUiApi {
    setLoading(loading: boolean): void;
}
```

`DataGridApi` methods of the data-state UI.

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `setLoading` | `setLoading(loading: boolean): void;` |  | Shows the loading indicator until `setLoading(false)`. A data load in progress shows it regardless. |
