Two separate tables???
See original GitHub issueHi Allen,
Congrats on great work on this component! I am just wondering why you decided on two separate tables for header and body? It sounds crazy to me to go that route! You have to spend so much effort to keep them aligned. I would have just had a single element with config and data parameters, like:
<BootstrapTable {...tableConfig} {...data} {...columns} />
This would generate a single table like:
<table class='table'>
<thead>
</thead>
<tbody>
</tbody>
</table>
Cheers
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Split a table
The table splits into two tables. The table is split into two tables. You can split the table further, as long as there...
Read more >How to split table horizontally or vertically in a Word ...
To split table to more tables, you just need to repeat the above steps as you need. 2. You can also use an...
Read more >Creating multiple tables and table relationships
Having all our data in one table can make for very difficult data management. We can split data in specialized tables that are...
Read more >How to Split and Merge Tables in Microsoft Word
You can split a single table into two tables with a convenient ribbon button. Place your cursor in the cell that you want...
Read more >Separate Tables (film)
Separate Tables is a 1958 American drama film starring Rita Hayworth, Deborah Kerr, David Niven, Burt Lancaster, and Wendy Hiller, based on two...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@AllenFang I may have misunderstood your point but in any case, where does something like this fall short: https://jsfiddle.net/0ho7dxy1/1/
I appreciate your attention to this fundamental issue @AllenFang and @tacomanator! I would say though that you really should not be worried about large number of columns. That to me is a design issue. A table/grid is for a limited number of columns that can be displayed in a sane fashion in a viewport. If there are more detailed data that is directly related to the entity that is represented in a row, you could either provide a link or maybe even implement an expandable row that can be a custom component and people can put whatever they want in that custom component. There seems to be a discussion already about expandable row here: [https://github.com/AllenFang/react-bootstrap-table/issues/362]
If you are trying to build a spreadsheet component then that’s a different story. In which case I would suggest a cell-based approach instead something similar to https://handsontable.com/
Cheers