p-table with alternate row color
You can use nth-child css selector for that (with odd or even parameter). For example, you can put the following in your styles.css to make the background of even rows red:
Code: Select all
.p-datatable .p-datatable-tbody > tr:nth-child(even) {
background: red;
}
-
- Information
-
Who is online
Users browsing this forum: No registered users and 19 guests