dynamic-modal
Version:
The dynamic-modal is a solution of creation different modals into project using a json configuration file
17 lines (16 loc) • 654 B
TypeScript
import { SelectHTMLAttributes } from 'react';
import { IField, IFieldProps } from './field';
import { IModalLiveDataCondition } from './modal';
import { IOption } from './option';
type ISelectHtmlProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, 'name' | 'id' | 'style' | 'onChange' | 'value' | 'defaultValue' | 'disabled'>;
export interface IMakeSelect extends IField, ISelectHtmlProps {
elementType: 'select';
options: Array<IOption>;
liveData?: IModalLiveDataCondition;
isSearch?: boolean;
isMulti?: boolean;
}
export interface IMakeSelectProps extends IFieldProps {
element: Omit<IMakeSelect, 'elementType'>;
}
export {};