UNPKG

react-autocomplete-plugin

Version:

A simple, powerful, lightweight and customizable autocomplete tool programmed for React projects!

51 lines (50 loc) 1.74 kB
import React from "react"; import { CustomAriaType, CustomClassType, CustomStyleType } from "../../util/types/types"; export type RelativeSearchType = { includeOnly?: string[]; customRelativeSearchFunction?: Function; setDefaultValueWithACustomFunction?: Function; }; export type AdditionalDataType = { relativeSearch?: RelativeSearchType | boolean; }; type InputFieldType = { dropdownData: any[]; initialVisibleData?: number; scrollThreshold?: number; objectProperty?: string; inputFieldClass?: string; inputFieldStyle?: React.CSSProperties; placeHolder?: string; showdropDownArrow?: boolean; showClearOption?: boolean; isAutoCompleteDisabled?: boolean; totalRecords?: number; ariaRole?: string; ariaRoleDescription?: string; ariaInputField?: string; inspectAutoCompleteList?: boolean; defaultValue?: any; broadcastSelectedValue?: Function; disableProperty?: string; disableListFn?: Function | undefined; triggerClearSelectionEvent: Function | undefined; customClass?: CustomClassType; customStyle?: CustomStyleType; aria?: CustomAriaType; showLoadingSpinner?: boolean; isCustomSpinner?: boolean; noSearchResultMessage?: string; triggerApiLoadEvent?: Function | undefined; isApiLoad?: boolean; isScrollThresholdRequired?: boolean; triggerBlurEvent?: Function | undefined; triggerOnFocusEvent?: Function | undefined; searchFn?: any | undefined; viewMoreText?: string; showViewMore?: boolean; optViewMoreOnlyForApiCall?: boolean; additionalData?: AdditionalDataType; }; declare function Core(props: InputFieldType): import("react/jsx-runtime").JSX.Element; export default Core;