@fattureincloud/fic-design-system 0.4.13 → 0.4.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ export interface TableProps<T extends TableData> extends UseTableOptions<T> {
8
8
  noPagination?: boolean;
9
9
  manualPagination?: ManualPagination;
10
10
  onScroll?: () => void;
11
+ pageSize?: number;
11
12
  selectableRows?: boolean;
12
13
  preSelectAllRows?: boolean;
13
14
  onSelectionChange?: OnSelectionChange<T>;
@@ -29,6 +30,7 @@ export interface TableProps<T extends TableData> extends UseTableOptions<T> {
29
30
  * @param {boolean} sortable Makes all columns sortable, sort can be disabled for a single column inside columns definition
30
31
  * @param {function} onSort Callback called on column sort change
31
32
  * @param {boolean} noPagination Hide table paginator and disabled pagination
33
+ * @param {number} pageSize Define the page size to use in every page
32
34
  * @param {object} manualPagination If you want to manage the pagination by yourself
33
35
  * @param {function} onScroll If pagination is disabled, this callback is called when user scroll to the bottom of the table
34
36
  * @param {boolean} selectableRows Allow to select rows
@@ -47,5 +49,5 @@ export interface TableProps<T extends TableData> extends UseTableOptions<T> {
47
49
  * @param {number|string} headerHeight Set thead and th height, default 40px (if number is provided is considered as measure in pixels)
48
50
  * @param {number|string} rowHeight Set row height, default 40px (if number is provided is considered as measure in pixels)
49
51
  */
50
- declare const Table: <T extends TableData>({ actions, bodyHeight, columns, data, EmptyPage, Footer, globalFilter: externalGlobalFilter, headerHeight, hideHeader, isLoading, manualPagination, noPagination, onRowClick, onScroll, onSelectionChange, onSort, preSelectAllRows, renderActions, rowHeight, selectableRows, sortable, withCheckbox, }: TableProps<T>) => JSX.Element;
52
+ declare const Table: <T extends TableData>({ actions, bodyHeight, columns, data, EmptyPage, Footer, globalFilter: externalGlobalFilter, headerHeight, hideHeader, isLoading, manualPagination, noPagination, onRowClick, onScroll, onSelectionChange, onSort, preSelectAllRows, renderActions, rowHeight, selectableRows, sortable, withCheckbox, pageSize, }: TableProps<T>) => JSX.Element;
51
53
  export default Table;