hello, I have a datatable with rows with different background color (red and green)
The problem I have is of an aesthetic nature.
When I click a row (green or red), you can make the selection transparent? Otherwise the red line turns green and I was not very pretty.
But obviously the datatable must have the parameter select: true, because there are some clickable columns.
I hope I was clear.
Thank you
thanks, but the problem is that background rows are green and yellow, then when I select any line the background becomes white
Yep, sorry - CSS of the selected cell/row/column has to correspond to its default style: http://webix.com/snippet/3812b013
well, so it would be almost perfect, only the rows that I have no alternate color with even and odd, but I change the color based on the contents of a cell
have you a solution Listopad please? Thanks a lot
>I change the color based on the contents of a cell
Can you please provide a sample of your current implementation? How exactly do you apply new styling?
As I’ve said before, CSS of the selected cell/row/column has to correspond to its default style
And if you use just something like grid.addRowCss(3, 'colored_area')
, the following style will be enough to override defaults:
.colored_area, .colored_area.webix_row_select{
background-color:#b4e2c9 !important;
color:#666 !important;
}
hello, I try to explain it
I have a datatable with 10 rows
the first column of each row contains the status of the record
if status = 1 row color red
if status = 0 row color = yellow
Now I would like the selection of the line is always transparent
thanks
It’s a common use-case for $change scheme key. The style mentioned earlier will work as needed.
thanks