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
{{ message }}
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
- Implement row context feature to be used for reducing duplicate computations.
- Implement rowCssClass/elementCssClass for more control over styling.
- Update Readme.md
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,10 @@ tabletable has the following component props:
41
41
42
42
**filterValue [string]** - text to display in search filter.
43
43
44
+
**rowContext [func(row: object, index: number): Object]** - callback function invoked once per row with row and index arguments and returns an object. This object will be passed to the column definition object. It is intended to alleviate situations where identical expensive computations need to be performed for more than one column.
45
+
46
+
**rowCssClass [string]** - CSS class(es) to use for row (tr) element.
47
+
44
48
### Column definition options
45
49
Column definitions are a flexible way to get some fairly complex behaviors into the table while also allowing the *shape* of the data to be however you prefer. Each column defines a function that receives the row data and index as arguments and returns a React component that displays the content. This means that you can drive complex behaviors from the state and props of the parent component. The properties available in the definition objects are:
46
50
@@ -52,7 +56,7 @@ Column definitions are a flexible way to get some fairly complex behaviors into
52
56
53
57
**headerCssClass [string]** - CSS class(es) to use for header column (th) element.
54
58
55
-
**rowCssClass[string]** - CSS class(es) to use for row column (td) element.
59
+
**elementCssClass[string]** - CSS class(es) to use for row column (td) element.
56
60
57
61
**visible [bool]** - show/hide the column.
58
62
@@ -62,7 +66,7 @@ Column definitions are a flexible way to get some fairly complex behaviors into
0 commit comments