@pk-design/react-ui-kit
Version:
Reusable react components
31 lines (30 loc) • 1.2 kB
TypeScript
import React, { Component } from 'react';
import { ColumnProps, AsyncProps, AsyncTableState } from './props';
declare class AsyncTable extends Component<AsyncProps, AsyncTableState> {
scrollableArea: React.RefObject<HTMLDivElement>;
columnSettings: (HTMLDivElement | null);
_unsubscribe: boolean;
constructor(props: AsyncProps);
componentDidMount(): void;
componentDidUpdate(prevProps: AsyncProps): void;
componentWillUnmount(): void;
scrollToInitialPosition: () => void;
getParams: () => any;
fetchRecord: () => void;
refreshTable: () => void;
afterSelect: () => void;
toggleRowSelect: (row: any, index: number) => void;
toggleSelectAll: () => void;
getSelectedState: () => string;
sortColumn: (column: ColumnProps) => void;
filteredColumns: () => ColumnProps[];
gotoNextPage: (total: number) => void;
gotoPreviousPage: () => void;
setPaginationLimit: (limit: number) => void;
toggleColumnSettings: () => void;
addEvtListener: () => void;
removeEvtListener: () => void;
handleOutsideClick: (e: MouseEvent) => void;
render(): JSX.Element;
}
export default AsyncTable;