Signature

    Import

    Constructors

    Properties

    PropertyModifiersTypeDescription
    editorEditor | null
    (event: Event, editor: CoreEditor, next: Function) => anyWe need to handle blur events here mainly because of dashboard panels which expect to have query executed on blur.
    lastExecutedValueValue | null
    boolean
    onChange(value: Value, runQuery?: boolean | undefined) => voidUpdate local state, propagate change upstream and optionally run the query afterwards.
    Plugin[]
    runOnChange() => void
    () => void
    runOnChangeDebouncedFunction
    () => void

    Methods

    Constructs a new instance of the class

    Signature

    1. constructor(props: QueryFieldProps, context: Context<any>);

    Parameters

    ParameterTypeDescription
    propsQueryFieldProps
    contextContext<any>

    editor property

    Signature

    1. editor: Editor | null;

    handleBlur property

    We need to handle blur events here mainly because of dashboard panels which expect to have query executed on blur.

    Signature

      lastExecutedValue property

      1. lastExecutedValue: Value | null;

      mounted property

      Signature

      Update local state, propagate change upstream and optionally run the query afterwards.

      Signature

      1. onChange: (value: Value, runQuery?: boolean | undefined) => void;

      plugins property

      Signature

      1. plugins: Plugin[];

      runOnChange property

      Signature

      1. runOnChange: () => void;

      runOnChangeAndRunQuery property

      Signature

      1. runOnChangeAndRunQuery: () => void;

      runOnChangeDebounced property

      Signature

      1. runOnChangeDebounced: Function;

      Signature

      cleanText method

      Signature

      Parameters

      Returns:

      componentDidMount method

      Signature

      1. componentDidMount(): void;

      Returns:

      void

      componentDidUpdate method

      Signature

      1. componentDidUpdate(prevProps: QueryFieldProps, prevState: QueryFieldState): void;

      Parameters

      ParameterTypeDescription
      prevPropsQueryFieldProps
      prevStateQueryFieldState

      Returns:

      void

      componentWillUnmount method

      Signature

        Returns:

        void

        Signature

        1. render(): JSX.Element;