API Reference@grafana/uiQueryField

QueryField variable

QueryField variable

Signature

QueryField: React.FunctionComponent<{
    disabled?: boolean | undefined;
    onChange?: ((value: string) => void) | undefined;
    query?: string | null | undefined;
    onRunQuery?: (() => void) | undefined;
    onBlur?: (() => void) | undefined;
    placeholder?: string | undefined;
    onClick?: ((event: Event, editor: CoreEditor, next: () => any) => any) | undefined;
    syntax?: string | undefined;
    onTypeahead?: ((typeahead: TypeaheadInput) => Promise<TypeaheadOutput>) | undefined;
    cleanText?: ((text: string) => string) | undefined;
    onWillApplySuggestion?: ((suggestion: string, state: SuggestionsState) => string) | undefined;
    portalOrigin: string;
    additionalPlugins?: Plugin[] | undefined;
    onRichValueChange?: ((value: Value) => void) | undefined;
    syntaxLoaded?: boolean | undefined;
}>

Import

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