Signature
Import
Constructors
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
editor | Editor | null | ||
(event: Event, editor: CoreEditor, next: Function) => any | We need to handle blur events here mainly because of dashboard panels which expect to have query executed on blur. | ||
lastExecutedValue | Value | null | ||
boolean | |||
onChange | (value: Value, runQuery?: boolean | undefined) => void | Update local state, propagate change upstream and optionally run the query afterwards. | |
Plugin[] | |||
runOnChange | () => void | ||
() => void | |||
runOnChangeDebounced | Function | ||
() => void |
Methods
Constructs a new instance of the class
Signature
constructor(props: QueryFieldProps, context: Context<any>);
Parameters
Parameter | Type | Description |
---|---|---|
props | QueryFieldProps | |
context | Context<any> |
editor property
Signature
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
lastExecutedValue: Value | null;
mounted property
Signature
Update local state, propagate change upstream and optionally run the query afterwards.
Signature
onChange: (value: Value, runQuery?: boolean | undefined) => void;
plugins property
Signature
plugins: Plugin[];
runOnChange property
Signature
runOnChange: () => void;
runOnChangeAndRunQuery property
Signature
runOnChangeAndRunQuery: () => void;
runOnChangeDebounced property
Signature
runOnChangeDebounced: Function;
Signature
cleanText method
Signature
Parameters
Returns:
componentDidMount method
Signature
componentDidMount(): void;
Returns:
void
componentDidUpdate method
Signature
componentDidUpdate(prevProps: QueryFieldProps, prevState: QueryFieldState): void;
Parameters
Parameter | Type | Description |
---|---|---|
prevProps | QueryFieldProps | |
prevState | QueryFieldState |
Returns:
void
componentWillUnmount method
Signature
Returns:
void
Signature
render(): JSX.Element;