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

UI Components for React
Post Reply
TheVoid
Posts: 4
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: 3716
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 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests