question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Two separate tables???

See original GitHub issue

Hi 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
tacomanatorcommented, Oct 26, 2016

@AllenFang I may have misunderstood your point but in any case, where does something like this fall short: https://jsfiddle.net/0ho7dxy1/1/

1reaction
innopalcommented, Oct 27, 2016

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found