react datatable "how could I set the row height"?

UI Components for React
Post Reply
TheVoid
Posts: 3
Joined: 12 May 2017, 09:30

01 Oct 2021, 15:54

Hi,
could somebody give me please a hint how to set the row height of a datatable.

Something like font + 4px

Best wishes
Jürgen

Melloware
Posts: 2919
Joined: 22 Apr 2013, 15:48

21 Oct 2021, 20:56

Use CSS and set height to whatever your want...

Code: Select all

.p-datatable .p-datatable-tbody > tr > td {
   height: 16px;
}
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 10.0.7 / PF Extensions 10.0.6
PrimeReact 7.0.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests