@try-at-software/input-elements
Version:
A package providing different input elements that are extensible and easily configurable for your custom needs.
16 lines (15 loc) • 938 B
TypeScript
/// <reference types="react" />
import { IBasePickerSuggestionsProps, IPersonaProps, ISuggestionItemProps } from '@fluentui/react';
import { IBaseInputElementProps } from '../IBaseInputElementProps';
export interface IIdentityPickerProps<TIdentity extends IPersonaProps = IPersonaProps> extends IBaseInputElementProps {
onResolveSuggestions: (query: string, selectedItems?: TIdentity[]) => Promise<TIdentity[]>;
getTextFromItem?: (item: TIdentity, currentValue?: string) => string;
onEmptyResolveSuggestions?: (currentPersonas?: TIdentity[]) => Promise<TIdentity[]>;
onRenderSuggestionItems?: (item: TIdentity, props: ISuggestionItemProps<TIdentity>) => JSX.Element;
suggestionProps?: IBasePickerSuggestionsProps;
onRemoveSuggestion?: (item: TIdentity) => void;
onInputChange?: (input: string) => string;
resolveDelay?: number;
itemLimit?: number;
pickerCalloutClassName?: string;
}