QueryField variable

QueryField variable

Signature

  1. QueryField: React.FunctionComponent<{
  2. disabled?: boolean | undefined;
  3. onChange?: ((value: string) => void) | undefined;
  4. query?: string | null | undefined;
  5. onRunQuery?: (() => void) | undefined;
  6. onBlur?: (() => void) | undefined;
  7. placeholder?: string | undefined;
  8. onClick?: ((event: Event | React.MouseEvent, editor: Editor, next: () => any) => any) | undefined;
  9. syntax?: string | undefined;
  10. onTypeahead?: ((typeahead: TypeaheadInput) => Promise<TypeaheadOutput>) | undefined;
  11. cleanText?: ((text: string) => string) | undefined;
  12. onWillApplySuggestion?: ((suggestion: string, state: SuggestionsState) => string) | undefined;
  13. portalOrigin: string;
  14. additionalPlugins?: Plugin<Editor>[] | undefined;
  15. onRichValueChange?: ((value: Value) => void) | undefined;
  16. syntaxLoaded?: boolean | undefined;
  17. }>

Import

  1. import { QueryField } from '@grafana/ui';