data-table-component-gif 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.d.ts +0 -38
package/package.json
CHANGED
package/src/index.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Column definition for the table.
|
|
5
|
-
*/
|
|
6
|
-
export interface Column {
|
|
7
|
-
/**
|
|
8
|
-
* Key of the object property to show in this column.
|
|
9
|
-
*/
|
|
10
|
-
key: string;
|
|
11
|
-
/**
|
|
12
|
-
* Header label for the column.
|
|
13
|
-
*/
|
|
14
|
-
label: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Props accepted by the DataTable component.
|
|
19
|
-
*/
|
|
20
|
-
export interface DataTableProps {
|
|
21
|
-
/**
|
|
22
|
-
* Array of data objects to render.
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<Record<string, any>>;
|
|
25
|
-
/**
|
|
26
|
-
* Array of column definitions.
|
|
27
|
-
*/
|
|
28
|
-
columns?: Column[];
|
|
29
|
-
/**
|
|
30
|
-
* Number of items to show per page (pagination).
|
|
31
|
-
*/
|
|
32
|
-
itemsPerPage?: number;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Simple data table with sorting, filtering and pagination.
|
|
37
|
-
*/
|
|
38
|
-
export function DataTable(props: DataTableProps): React.JSX.Element;
|