+++
# -----------------------------------------------------------------------
# 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
Signature
```typescript
onUpdateDatasourceOption: (props: DataSourcePluginOptionsEditorProps, key: "type" | "name" | "id" | "orgId" | "typeLogoUrl" | "access" | "url" | "password" | "user" | "database" | "basicAuth" | "basicAuthPassword" | "basicAuthUser" | "isDefault" | "jsonData" | "secureJsonData" | "secureJsonFields" | "readOnly" | "withCredentials" | "version") => (event: import("react").SyntheticEvent) => void
```
Import
```typescript
import { onUpdateDatasourceOption } from '@grafana/data';
```