Page 1 of 1

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

Posted: 02 Aug 2019, 10:53
by whity
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

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

Posted: 10 Sep 2019, 12:29
by aragorn
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,