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
useResizeColumns
- Plugin Hook
- Optional
useResizeColumns is a plugin hook that adds support for resizing headers and cells when using non-table elements for layout eg. the useBlockLayout and useAbsoluteLayout hooks. It even supports resizing column groups!
Table Options
disableResizing: Bool- Defaults to
false - When set to
true, resizing is disabled across the entire table
- Defaults to
Column Options
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.
disableResizing: Bool- Defaults to
false - When set to
true, resizing is disabled for this column
- Defaults to
Header Properties
getResizerProps- Usage Required
- This core prop getter is required to to enable absolute layout for headers
canResize: Bool- Will be
trueif this column can be resized
- Will be
isResizing: Bool- Will be
trueif this column is currently being resized
- Will be