QueryInputPropsinterface
{
schema: Schema<I>;
onQuery: PayloadFetchCallback<I, ImmutableArray<O> | undefined>;
formatter?: ((value: O) => string) | undefined;
empty?: ReactNode | undefined;
}| Property | Type | |
|---|---|---|
.schema | Schema<I> | Schema input required |
.onQuery | PayloadFetchCallback<I, ImmutableArray<O>undefined> | Called with the current text value to return matching items whenever the text input changes. - Automatically debounced, so only called after a short delay. - Automatically shows a loading state while loading. - Returning undefined signals to close the popover. required |
.formatter | ((value: O) => string) | Format an item of type O for display in the picker. |
.empty | ReactNode | Message that shows when query returns [] empty array (set to "" empty string to show no message). |
Props for QueryInput, a combo box that queries items of type O from an input of type I.