/usr/share/grafana/public/app/plugins/datasource/influxdb/components/editor/query/influxql/visual
import { SelectableValue } from '@grafana/data'; import { unwrap } from '../utils/unwrap'; import { Seg } from './Seg'; type Props = { loadOptions: () => Promise<SelectableValue[]>; allowCustomValue?: boolean; onAdd: (v: string) => void; }; export const AddButton = ({ loadOptions, allowCustomValue, onAdd }: Props): JSX.Element => { return ( <Seg value="+" loadOptions={loadOptions} allowCustomValue={allowCustomValue} onChange={(v) => { onAdd(unwrap(v.value)); }} /> ); };
.
Edit
..
Edit
AddButton.tsx
Edit
FormatAsSection.tsx
Edit
FromSection.tsx
Edit
InputSection.tsx
Edit
OrderByTimeSection.tsx
Edit
PartListSection.tsx
Edit
Seg.tsx
Edit
TagsSection.test.tsx
Edit
TagsSection.tsx
Edit
VisualInfluxQLEditor.tags.test.tsx
Edit
VisualInfluxQLEditor.test.tsx
Edit
VisualInfluxQLEditor.tsx
Edit
styles.ts
Edit