mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
* Update utils.js * Update useTable.js * Create useColumnVisibility.js * Update useColumnVisibility.js * Update useColumnVisibility.js * Convert to core hook, use new reducerHanndler/actions * Add useColumnVisibility internal hook
1.2 KiB
1.2 KiB
useBlocklayout
- Plugin Hook
- Optional
useBlocklayout is a plugin hook that adds support for headers and cells to be rendered as inline-block divs (or other non-table elements) with explicit width. Similar to the useAbsoluteLayout hook, this becomes useful if and when you need to virtualize rows and cells for performance.
NOTE: Although no additional options are needed for this plugin to work, the core column options width, minWidth and maxWidth are used to calculate column and cell widths and must be set. See Column Options for more information on these options.
Row Properties
getRowProps- Usage Required
- This core prop getter is required to to enable absolute layout for rows
Cell Properties
getCellProps- Usage Required
- This core prop getter is required to to enable absolute layout for rows cells
Header Properties
getHeaderProps- Usage Required
- This core prop getter is required to to enable absolute layout for headers