ontime-components
Version:
List of react components
21 lines (20 loc) • 592 B
TypeScript
import { PureComponent } from 'react';
import { IProps } from '../../libs/interfaces';
import { TFuncClick } from '../../libs/types';
declare type TMapValue = string | Function;
interface IListSelectProps extends IProps {
data: any[];
onClick: Function;
multiple?: boolean;
value?: any;
customItemTpl?: Function;
mapValue?: TMapValue;
isOpen?: boolean;
fetching?: boolean;
}
declare class List extends PureComponent<IListSelectProps> {
onClick: TFuncClick;
renderItem(item: any, idx: number): JSX.Element;
render(): JSX.Element;
}
export { List };