1

For a custom React component I wrapped Tabulator and would love to support custom heights for a table header and indvidual rows. I only found row resizing in the documentation, but no information about how to set a custom height in the data (or through an API call).

Mike Lischke
  • 48,925
  • 16
  • 119
  • 181

1 Answers1

0

It's not clear to me from your question if you want to control the height of all rows or just particular ones.

If you want to control height based on data you can use a row formatter. Works well in my experience.

There is also this answer about overriding the CSS for rows: Adjust tabulator row height

.tabulator-row {
  position: relative;
  box-sizing: border-box;
  min-height: 22px;
  background-color: #fff;
}
spring
  • 18,009
  • 15
  • 80
  • 160
  • Right, I also used CSS to set a height for the tabulator-row class, however that's not the entire story. The text is then badly aligned and the hover effect on the header row shows a smaller rectangle. That means you would need to adjust a few more CSS classes, which together don't make this very dynamic. That's why I hoped there's an API. – Mike Lischke Jun 02 '21 at 07:00