This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/dataonUpdateDatasourceOption

onUpdateDatasourceOption variable

onUpdateDatasourceOption variable

Signature

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

Import

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