source: src/components/table/types.ts

main
Last change on this file was 5d6f37a, checked in by Naum Shapkarovski <naumshapkarovski@…>, 7 weeks ago

add customer

  • Property mode set to 100644
File size: 1.2 KB
Line 
1// ----------------------------------------------------------------------
2
3export type TableProps = {
4 dense: boolean;
5 page: number;
6 rowsPerPage: number;
7 order: 'asc' | 'desc';
8 orderBy: string;
9 //
10 selected: string[];
11 onSelectRow: (id: string) => void;
12 onSelectAllRows: (checked: boolean, newSelecteds: string[]) => void;
13 //
14 onResetPage: VoidFunction;
15 onSort: (id: string) => void;
16 onChangePage: (event: unknown, newPage: number) => void;
17 onChangeRowsPerPage: (event: React.ChangeEvent<HTMLInputElement>) => void;
18 onChangeDense: (event: React.ChangeEvent<HTMLInputElement>) => void;
19 onUpdatePageDeleteRow: (totalRowsInPage: number) => void;
20 onUpdatePageDeleteRows: ({
21 totalRows,
22 totalRowsInPage,
23 totalRowsFiltered,
24 }: {
25 totalRows: number;
26 totalRowsInPage: number;
27 totalRowsFiltered: number;
28 }) => void;
29 //
30 setPage: React.Dispatch<React.SetStateAction<number>>;
31 setDense: React.Dispatch<React.SetStateAction<boolean>>;
32 setOrder: React.Dispatch<React.SetStateAction<'desc' | 'asc'>>;
33 setOrderBy: React.Dispatch<React.SetStateAction<string>>;
34 setSelected: React.Dispatch<React.SetStateAction<string[]>>;
35 setRowsPerPage: React.Dispatch<React.SetStateAction<number>>;
36};
Note: See TracBrowser for help on using the repository browser.