You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The minimum number of rows that are displayed. If the data contains less entries than `minRows`, it will be filled with empty rows.
90
+
*/
85
91
minRows?: number;
92
+
/**
93
+
* The number of rows visible without going into overflow.
94
+
* __Note:__ If the data contains more entries than the `visibleRow` count, a vertical scrollbar is rendered and the table goes into overflow.
95
+
*/
86
96
visibleRows?: number;
97
+
/**
98
+
* Indicates whether a loading indicator should be shown.
99
+
* __Note:__ If the data array is not empty and loading is set to `true` a `Loader` will be displayed underneath the header, otherwise a loading placeholder will be shown.
100
+
* You can use your own placeholder by passing it to the `LoadingComponent` prop.
101
+
*/
87
102
loading?: boolean;
103
+
/**
104
+
* Defines the text shown if the data array is empty. If not set "No data" will be displayed.
105
+
*/
88
106
noDataText?: string;
107
+
/**
108
+
* Defines the height of the rows and header.
109
+
*/
89
110
rowHeight?: number;
111
+
/**
112
+
* Defines whether the table should display rows with alternating row colors.
113
+
*/
90
114
alternateRowColor?: boolean;
91
115
/**
92
116
* Flag whether the table should add an extra column for displaying row highlights, based on the `highlightField` prop.
* Defines the unique ID for the column. It is used by reference in things like sorting, grouping, filtering etc.
14
+
* __Note__: Required if `accessor` is a function, otherwise `accessor` will overwrite the id.
10
15
*/
11
16
id?: string;
12
-
17
+
/**
18
+
* Can either be string or a React component that will be rendered as column header
19
+
*/
13
20
Header?: string|ComponentType<any>;
21
+
/**
22
+
* Tooltip for the column header. If not set, the display text will be the same as the Header if it is a `string`.
23
+
*/
14
24
headerTooltip?: string;
25
+
/**
26
+
* Custom cell renderer. If set, the table will call that component for every cell and pass all required information as props, e.g. the cell value as `props.cell.value`
27
+
*/
15
28
Cell?: string|ComponentType<any>;
29
+
/**
30
+
* Cell width, if not set the table will distribute all columns without a width evenly.
31
+
*/
16
32
width?: number;
33
+
/**
34
+
* Minimum width of the column, e.g. used for resizing.
35
+
*/
17
36
minWidth?: number;
37
+
/**
38
+
* Maximum with of the column, e.g. used for resizing.
39
+
*/
18
40
maxWidth?: number;
19
41
20
42
// useFilters
43
+
/**
44
+
* Filter Component to be rendered in the Header.
45
+
*/
21
46
Filter?: string|ComponentType<any>;
47
+
/**
48
+
* Disable filters for this column.
49
+
*/
22
50
disableFilters?: boolean;
51
+
/**
52
+
* If set to true, this column will be filterable, regardless if it has a valid `accessor`.
53
+
*/
23
54
defaultCanFilter?: boolean;
55
+
/**
56
+
* Either a string or a filter function.<br />Supported String Values: <ul><li>`text`</li><li>`exactText`</li><li>`exactTextCase`</li><li>`equals`</li></ul>
57
+
*/
24
58
filter?: string|Function;
25
59
26
60
// useGroupBy
61
+
/**
62
+
* Component to render for aggregated cells.
63
+
*/
27
64
Aggregated?: string|ComponentType<any>;
65
+
/**
66
+
* Aggregation function or string.<br />Supported String Values: <ul><li>`min`</li><li>`max`</li><li>`median`</li><li>`count`</li></ul>
* When attempting to group/aggregate non primitive cell values (eg. arrays of items) you will likely need to resolve a stable primitive value like a number or string to use in normal row aggregations. This property can be used to aggregate or simply access the value to be used in aggregations eg. count-ing the unique number of items in a cell's array value before sum-ing that count across the table.
0 commit comments