mirror of
https://github.com/gosticks/react-table.git
synced 2026-10-06 07:46:54 +00:00
Normalize API method names and row modesl, add expandAll functionality including prop getter
This commit is contained in:
@@ -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>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user