+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "onUpdateDatasourceOption"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## onUpdateDatasourceOption variable

### onUpdateDatasourceOption variable

<b>Signature</b>

```typescript
onUpdateDatasourceOption: (props: DataSourcePluginOptionsEditorProps, key: keyof DataSourceSettings) => (event: React.SyntheticEvent<HTMLInputElement | HTMLSelectElement>) => void
```
<b>Import</b>

```typescript
import { onUpdateDatasourceOption } from '@grafana/data';
```
