@availity/reactstrap-validation-select
Version:
Wrapper for react-select to work with availity-reactstrap-validation
39 lines (34 loc) • 894 B
TypeScript
type ResourceType = {
postGet?: Function;
post?: Function;
getResult?: string | Function;
};
type GraphQLConfigType = {
type?: string;
query?: string;
};
export interface AvResourceSelectProps {
requestConfig?: object;
resource: ResourceType;
getResult?: string | Function;
hasMore?: boolean | Function;
delay?: number;
debounceTimeout?: number;
label?: React.ReactNode;
customerId?: string;
parameters?: object | ((params: any) => any);
method?: 'POST';
itemsPerPage?: number;
onPageChange?: Function;
isDisabled?: boolean;
requiredParams?: any[];
watchParams?: any[];
cacheUniq?: any;
additional?: object;
graphqlConfig?: GraphQLConfigType;
minCharsToSearch?: number;
waitUntilFocused?: boolean;
encodeSearchValue?: boolean;
}
declare const AvResourceSelect: React.ComponentType<AvResourceSelectProps>;
export default AvResourceSelect;