Normalize API method names and row modesl, add expandAll functionality including prop getter

This commit is contained in:
Tanner Linsley
2020-02-15 12:43:09 -07:00
parent 2bf99aaea0
commit 083e81dc81
26 changed files with 386 additions and 204 deletions
+2 -2
View File
@@ -120,9 +120,9 @@ function App() {
id: 'expander', // It needs an ID
Cell: ({ row }) => (
// Use Cell to render an expander for each row.
// We can use the getExpandedToggleProps prop-getter
// We can use the getToggleRowExpandedProps prop-getter
// to build the expander.
<span {...row.getExpandedToggleProps()}>
<span {...row.getToggleRowExpandedProps()}>
{row.isExpanded ? '👇' : '👉'}
</span>
),