UNPKG

react-admin-component

Version:
26 lines (25 loc) 1.11 kB
import React from 'react'; import { FormBaseProps } from '../form-input'; import { FormProps, FormComponentProps } from 'antd/lib/form'; import { SelectValue } from 'antd/lib/select'; import { FormInputSearchTableConfig } from '../input-search-table'; interface FormInputSearchProps extends FormBaseProps, FormProps { form: FormComponentProps['form']; fetchApi?: Function; apiParamsCb?: (value: any) => any; optionRender?: (data: any) => React.ReactElement | string; showTags?: boolean; tagRender?: (data: any) => React.ReactElement | string; tagKey?: (data: any) => React.ReactElement | string; normalizeValue?: (value: SelectValue, option: any, fieldValue: any) => any; strAddable?: boolean; tagsClassName?: string; onSelectCallBack?: Function; onChange?: (value: any) => void; initialInputValue?: string | number; tagCloseCB?: Function; tableConfig?: FormInputSearchTableConfig; withoutSetValue?: boolean; } declare const FormInputSearch: (props: FormInputSearchProps) => JSX.Element; export default FormInputSearch;