Change the background color of the table cell that you can edit

UI Components for React
Post Reply
whity
Posts: 3
Joined: 02 Aug 2019, 10:11

02 Aug 2019, 10:53

Hi,

I would like to change some styles of cells, which are editable. And I want to do that, when I select row - just to show the user, which cells are editable.

How can I achieve this? Can you help me?

Thanks

aragorn
Posts: 3765
Joined: 29 Jun 2013, 12:38

10 Sep 2019, 12:29

Hi,

You can use p-cell-editing class. Please try;

Code: Select all

body .p-datatable .p-datatable-tbody > tr > td.p-cell-editing {
    background-color: #007ad9;
}
Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest