interface SelectProps {
    addText?: string;
    allowClear?: boolean;
    autoFocus?: boolean;
    canAdd?: boolean;
    canCreate?: boolean;
    canSelectAll?: boolean;
    data-readonly?: true;
    defaultValue?: SelectValue;
    dropdownMatchSelectWidth?: "autoContent" | "1.5:1";
    dropdownRef?: Ref<HTMLDivElement>;
    dropdownRender?: DropdownRenderFunction;
    errorMessage?: ReactNode;
    hasError?: boolean;
    inputRef?: Ref<HTMLInputElement>;
    inputRowsMode?: SelectInputRowsMode;
    isAllSelected?: boolean;
    isDefaultOpen?: boolean;
    isDisabled?: boolean;
    isHighlighted?: boolean;
    isOpen?: boolean;
    isReadOnly?: boolean;
    isWaiting?: boolean;
    mode?: SelectMode;
    multipleValueRenderer?: ((option: SelectOption, onDeleteSelectedOption: ((option: SelectOption) => ((e: SyntheticEvent<Element, Event>) => void))) => ReactNode);
    multiValueRenderer?: ((option: SelectOption, onDeleteSelectedOption: ((option: SelectOption) => ((e: SyntheticEvent<Element, Event>) => void)), defaultRenderer: ((value: string | number, displayValue: string, title: string, option: SelectOption) => ReactNode)) => ReactNode);
    notFoundContent?: ReactNode;
    notFoundText?: string;
    onAdd?: (() => void);
    onBlur?: (() => void);
    onChange?: ((value: undefined | SelectValue, options?: SelectOption[]) => void);
    onDeselect?: ((value: SelectValue) => void);
    onDeselectAll?: (() => void);
    onDropdownVisibleChange?: ((isOpen: boolean) => void);
    onFocus?: (() => void);
    onPrefixClick?: ((e: MouseEvent<Element, MouseEvent>) => void);
    onSearch?: ((text: string) => void);
    onSelect?: ((value: SelectValue) => void);
    onSelectAll?: (() => void);
    onSuffixClick?: ((e: MouseEvent<Element, MouseEvent>) => void);
    optionRenderer?: ((option: SelectOption) => ReactNode);
    options: SelectOption[];
    optionsMaxHeight?: number;
    placeholder?: string;
    prefix?: ReactNode;
    preserveValueOrdering?: boolean;
    scrollModeMaxRows?: number;
    selectAllText?: string;
    selectedOptions?: SelectOption[];
    selectNoneText?: string;
    shouldBlurOnClose?: boolean;
    showArrow?: boolean;
    showSearch?: boolean;
    size?: SIZE;
    sortOrder?: "ASC" | "DESC";
    suffix?: ReactNode;
    targetRenderer?: ((handleClick: ((e: MouseEvent<HTMLDivElement, MouseEvent>) => void), value?: SelectValue) => ReactNode);
    title?: ReactNode;
    tooltipPlacement?: PLACEMENT;
    useClientFilter?: boolean;
    value?: SelectValue;
    valueRenderer?: ((value?: SelectValue) => ReactNode);
}

Properties

addText?: string
allowClear?: boolean
autoFocus?: boolean
canAdd?: boolean
canCreate?: boolean
canSelectAll?: boolean
data-readonly
defaultValue?: SelectValue
dropdownMatchSelectWidth?: "autoContent" | "1.5:1"
dropdownRef?: Ref<HTMLDivElement>
dropdownRender?: DropdownRenderFunction
errorMessage?: ReactNode
hasError?: boolean
inputRef?: Ref<HTMLInputElement>
inputRowsMode?: SelectInputRowsMode
isAllSelected?: boolean
isDefaultOpen?: boolean
isDisabled?: boolean
isHighlighted?: boolean
isOpen?: boolean
isReadOnly?: boolean
isWaiting?: boolean
mode?: SelectMode

'tags' mode generate new option by creating IOption {title: text, value: text}

multipleValueRenderer?: ((option: SelectOption, onDeleteSelectedOption: ((option: SelectOption) => ((e: SyntheticEvent<Element, Event>) => void))) => ReactNode)

multipleValueRenderer использует HTML параметр title, который может отличаться от выводимого значения Необходимо использовать параметр multiValueRenderer

@universe-platform/uikit 2.0.0

multiValueRenderer?: ((option: SelectOption, onDeleteSelectedOption: ((option: SelectOption) => ((e: SyntheticEvent<Element, Event>) => void)), defaultRenderer: ((value: string | number, displayValue: string, title: string, option: SelectOption) => ReactNode)) => ReactNode)
notFoundContent?: ReactNode
notFoundText?: string
onAdd?: (() => void)
onBlur?: (() => void)
onChange?: ((value: undefined | SelectValue, options?: SelectOption[]) => void)
onDeselect?: ((value: SelectValue) => void)
onDeselectAll?: (() => void)
onDropdownVisibleChange?: ((isOpen: boolean) => void)
onFocus?: (() => void)
onPrefixClick?: ((e: MouseEvent<Element, MouseEvent>) => void)
onSearch?: ((text: string) => void)
onSelect?: ((value: SelectValue) => void)
onSelectAll?: (() => void)
onSuffixClick?: ((e: MouseEvent<Element, MouseEvent>) => void)
optionRenderer?: ((option: SelectOption) => ReactNode)
options: SelectOption[]
optionsMaxHeight?: number
placeholder?: string
prefix?: ReactNode
preserveValueOrdering?: boolean
scrollModeMaxRows?: number
selectAllText?: string
selectedOptions?: SelectOption[]
selectNoneText?: string
shouldBlurOnClose?: boolean
showArrow?: boolean
showSearch?: boolean
size?: SIZE
sortOrder?: "ASC" | "DESC"
suffix?: ReactNode
targetRenderer?: ((handleClick: ((e: MouseEvent<HTMLDivElement, MouseEvent>) => void), value?: SelectValue) => ReactNode)
title?: ReactNode
tooltipPlacement?: PLACEMENT
useClientFilter?: boolean
value?: SelectValue
valueRenderer?: ((value?: SelectValue) => ReactNode)