mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
1.8 KiB
1.8 KiB
useFlexLayout
- Plugin Hook
- Optional
useFlexLayout is a plugin hook that adds support for headers and cells to be rendered as inline-block divs (or other non-table elements) with width being used as the flex-basis and flex-grow. This hook becomes useful when implementing both virtualized and resizable tables that must also be able to stretch to fill all available space.
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:
minWidthis only used to limit column resizing. It does not define the minimum width for a column.widthis used as both theflex-basisandflex-grow. This means that it essentially acts as both the minimum width and flex-ratio of the column.maxWidthis only used to limit column resizing. It does not define the maximum width for a column.
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
HeaderGroup Properties
getHeaderGroupProps- Usage Required
- This core prop getter is required to to enable absolute layout for headers
Header Properties
getHeaderProps- Usage Required
- This core prop getter is required to to enable absolute layout for headers