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
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,9 +87,9 @@ Nothing new here - we are using an array of object literals and properties to de
87
87
| striped | bool | no | false | stripe color the odd rows |
88
88
| highlightOnHover | bool | no | false | if rows are to be highlighted on hover |
89
89
| pointerOnHover | bool | no | false | if rows show a point icon on hover |
90
-
| actions | array of components | no || add actions to the TableHeader |
90
+
| actions |component or array of components | no || add actions to the TableHeader |
91
91
| contextTitle | string | no || override the context menu title |
92
-
| contextActions | array of components| no || add context action as an array of components |
92
+
| contextActions |component or array of components| no || add context actions to the TableHeader context|
93
93
| onTableUpdate | func | no || callback to access the entire Data Table state ({ allSelected, selectedCount, selectedRows, sortColumn, sortDirection, rows }) |
94
94
| onRowClicked | func | no || callback to access the row data,index on row click |
95
95
| clearSelectedRows | bool | no | false | toggling this property clears the selectedRows. If you use redux or react state you need to make sure that you pass a toggled value or the component will not update. See [Clearing Selected Rows](#clearing-selected-rows)|
@@ -114,7 +114,12 @@ Nothing new here - we are using an array of object literals and properties to de
114
114
| paginationIconLastPage || no | JSX | a component that overrides the last page icon for the pagination |
115
115
| paginationIconNext || no | JSX | a component that overrides the next page icon for the pagination |
116
116
| paginationIconPrevious || no | JSX | a component that overrides the previous page icon for the pagination |
117
-
117
+
| subHeader | component or array of components | no | false | show a subheader between the table and table header
118
+
| subHeaderAlign | string | no | right | align the subheader content (left, right, center)
119
+
| subHeaderWrap | bool | no | true | whether the subheader content should wrap
120
+
| subHeader | component or array of components | no | false | show a subheader between the table and table header
121
+
| subHeaderComponent | component or array of components | no |[]| a component you want to render |
122
+
118
123
#### Advanced Selectable Component Options
119
124
Sometimes 3rd party checkbox components have their own way of handling indeterminate state. We don't want React Data Table hardcoded to a specific ui lib or custom component, so instead a "hook" is provided to allow you to pass a function that will be resolved by React Data Table's internal `Checkbox` for use with `indeterminate` functionality.
0 commit comments