@devfamily/admiral
Version:
Admiral is a frontend framework for creating back office using React. It provides out-of-the-box components and tools that make developing an admin interface easy and fast.
13 lines (12 loc) • 640 B
TypeScript
import React from 'react';
import type { SelectProps } from '../../ui/Select/interfaces';
import { FormItemProps } from '../Item';
import { InputComponentWithName } from '../interfaces';
import { OptionType } from '../../dataProvider';
export interface AjaxSelectInputProps extends Omit<SelectProps, 'showSearch' | 'onSearch' | 'loading' | 'children' | 'filterOption'>, FormItemProps {
name: string;
fetchOptions: (field: string, query?: string) => Promise<OptionType[]>;
fetchTimeout?: number;
onChange?: (value: any) => void;
}
export declare const AjaxSelectInput: InputComponentWithName<React.FC<AjaxSelectInputProps>>;