react-autocomplete-plugin
Version:
A simple, powerful, lightweight and customizable autocomplete tool programmed for React projects!
48 lines (47 loc) • 1.68 kB
TypeScript
import { CustomAriaType, CustomClassType, CustomStyleType } from "../../util/types/types";
import './Autocomplete.css';
export type RelativeSearchType = {
includeOnly?: string[];
customRelativeSearchFunction?: Function;
setDefaultValueWithACustomFunction?: Function;
};
export type AdditionalDataType = {
relativeSearch?: RelativeSearchType | boolean;
};
export type AutoCompleteProps = {
dropdownData: any[];
objectProperty?: string;
initialVisibleData?: number;
scrollThreshold?: number;
inspectAutoCompleteList?: boolean;
placeHolder?: string;
showdropDownArrow?: boolean;
showClearOption?: boolean;
defaultValue?: any;
noSearchResultMessage?: string;
totalRecords?: number;
disableProperty?: string;
disableListFn?: Function | undefined;
customClass?: CustomClassType;
isAutoCompleteDisabled?: boolean;
customStyle?: CustomStyleType;
triggerBlurEvent?: Function | undefined;
triggerOnFocusEvent?: Function | undefined;
broadcastSelectedValue?: Function | undefined;
triggerClearSelectionEvent?: Function | undefined;
triggerApiLoadEvent?: Function | undefined;
isScrollThresholdRequired?: boolean;
showLoadingSpinner?: boolean;
isCustomSpinner?: boolean;
inputLabel?: string;
showInputlabel?: boolean;
aria?: CustomAriaType;
isApiLoad?: boolean;
searchFn?: Function | undefined;
viewMoreText?: string;
showViewMore?: boolean;
optViewMoreOnlyForApiCall?: boolean;
additionalData?: AdditionalDataType;
};
declare function Autocomplete(props: AutoCompleteProps): import("react/jsx-runtime").JSX.Element;
export default Autocomplete;