mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
Search: Add filterOption prop to Select (#24213)
This commit is contained in:
parent
8a88632791
commit
6768fb3672
@ -98,6 +98,7 @@ export function SelectBase<T>({
|
||||
defaultOptions,
|
||||
defaultValue,
|
||||
disabled = false,
|
||||
filterOption,
|
||||
formatCreateLabel,
|
||||
getOptionLabel,
|
||||
getOptionValue,
|
||||
@ -176,6 +177,7 @@ export function SelectBase<T>({
|
||||
defaultValue,
|
||||
// Also passing disabled, as this is the new Select API, and I want to use this prop instead of react-select's one
|
||||
disabled,
|
||||
filterOption,
|
||||
getOptionLabel,
|
||||
getOptionValue,
|
||||
inputValue,
|
||||
|
@ -14,6 +14,7 @@ export interface SelectCommonProps<T> {
|
||||
components?: any;
|
||||
defaultValue?: any;
|
||||
disabled?: boolean;
|
||||
filterOption?: (option: SelectableValue, searchQuery: string) => void;
|
||||
/** Function for formatting the text that is displayed when creating a new value*/
|
||||
formatCreateLabel?: (input: string) => string;
|
||||
getOptionLabel?: (item: SelectableValue<T>) => string;
|
||||
|
Loading…
Reference in New Issue
Block a user