/usr/share/grafana/public/app/plugins/datasource/grafana-testdata-datasource/components
import { InlineField, InlineFieldRow, Select } from '@grafana/ui'; import { EditorProps } from '../QueryEditor'; const ERROR_OPTIONS = [ { label: 'Server panic', value: 'server_panic', }, { label: 'Frontend exception', value: 'frontend_exception', }, { label: 'Frontend observable', value: 'frontend_observable', }, ]; const FrontendErrorQueryEditor = ({ query, onChange }: EditorProps) => { return ( <InlineFieldRow> <InlineField labelWidth={14} label="Error type"> <Select options={ERROR_OPTIONS} value={query.errorType} onChange={(v) => { onChange({ ...query, errorType: v.value }); }} /> </InlineField> </InlineFieldRow> ); }; export default FrontendErrorQueryEditor;
.
Edit
..
Edit
CSVContentEditor.tsx
Edit
CSVFileEditor.tsx
Edit
CSVWaveEditor.tsx
Edit
ErrorEditor.tsx
Edit
ErrorWithSourceEditor.tsx
Edit
GrafanaLiveEditor.tsx
Edit
NodeGraphEditor.tsx
Edit
PredictablePulseEditor.tsx
Edit
RandomWalkEditor.tsx
Edit
RawFrameEditor.tsx
Edit
SimulationQueryEditor.tsx
Edit
SimulationSchemaForm.tsx
Edit
StreamingClientEditor.tsx
Edit
USAQueryEditor.tsx
Edit