| title | lib-react-table-issues | ||
|---|---|---|---|
| tags |
|
||
| created | 2020-07-15T13:08:35.143Z | ||
| modified | 2020-08-18T06:14:37.874Z |
-
useRowSelect relies on external state
- a workaround is to
- avoid useRowSelect, or
- use it in controlled state mode (so, avoiding selection state update logic), or
- use selectedRowIds directly, ignoring helper methods and isSelected attribute.
- It is an annoyance, but at least you can use all other parts of react-table normally.
- a workaround is to
-
useResizeColumns does not clean up eventlistener for touch events properly.
-
no horizontal scrollbar showing up when resizing columns to be wider than the available table width
-
- this comes to a need having virtualization with row spans, now i can't use row span html attribute because my HoCs are divs and React naturally can't handle that nested DOM validation.
-
- This plugin is already implemented on v8
-
react-table supports infinite scrolling?
- When implementing virtual scrolling, you cannot use traditional table elements because:
- To virtualize, you must nest a few divs and create a scrollable overflow container, which you cannot do with table elements
- This would produce non-semantic HTML (which produces errors in React)
- Table elements do not behave normally in an absolutely positioned environment
- FWIW, you can implement virtual scrolling with traditional table elements.
- The trick is to set the height of the top and bottom
<tr>tags (e.g.,<tr style="height: 2536px;">). - Change the heights of them both whenever you scroll far enough to swap rows in/out.
- The trick is to set the height of the top and bottom
- When implementing virtual scrolling, you cannot use traditional table elements because:
-
react-virtual usage with react-table?
- You can't virtualize
<table>elements. You'll need to use divs and one of the flex/absolute/block layout plugins fromreact-table - To really achieve what you're talking about requires 2 virtualizers placed at differing layers.
- 1 vertical virtualizer for the rows, and another horizontal virtualizer for the entire table.
- This can get quite complex, and there are tons of edge cases, like handling header groupings in separate virtualizers, always showings scrollbars (which is extremely difficult).
- All reasons that I am building React Table Pro (working title) that will do all of this automatically.
- You can't virtualize
-
Now we got header and filter virtualization too!(free for personal use)
- Nested headers
- Filter Row
- 100, 000 rows x 20 cols
- 100% flawless alignment
- grid-area x/y Positioning (positioning without the all the css
position: absolutecrap)
-
- I use
useBlockLayoutand I don’t understand how to make the table stretch 100% of the width of the parent. In theory, the width of the columns should be adjusted as it was at V6 - Out of the box, no, it does not behave like v6, since it is not using a flexbox model.
- useBlockLayout uses inline-block divs with precise widths. You can stretch the table container itself to take up the full width, but in a block or absolute layout, your columns will not grow automatically.
- The only way I know of to reliably do that is using the default html-table-element layout.
- I use