# ControlledDataSourceOptions (@salmonui/data)

> The ControlledDataSourceOptions interface of @salmonui/data.

Canonical: https://salmonui.dev/docs/reference/data/ControlledDataSourceOptions

```ts
import type { ControlledDataSourceOptions } from '@salmonui/data';
```

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

## Reference

Kind: interface

```ts
interface ControlledDataSourceOptions<Row> {
    readonly onQueryChange: (request: DataSourceRequest) => DataSourceResult<Row> | Promise<DataSourceResult<Row>>;
    readonly onDataChange?: (request: WriteRequest<Row>) => Promise<WriteResult<Row>>;
    readonly capabilities?: Partial<DataSourceCapabilities>;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `onQueryChange` | `readonly onQueryChange: (request: DataSourceRequest) => DataSourceResult<Row> \| Promise<DataSourceResult<Row>>;` |  |  |
| `onDataChange` | `readonly onDataChange?: (request: WriteRequest<Row>) => Promise<WriteResult<Row>>;` | optional |  |
| `capabilities` | `readonly capabilities?: Partial<DataSourceCapabilities>;` | optional |  |
