On my last project, I worked with the Legacy Table which I was very happy with.
Now I am working with the New Table.
My issue is with the color of the selected row (Accent Color).
I am showing a sample below.
The screen capture shows the hover color in green which is a clear, strong color. It also shows the selected row color that is an anemic gray which I have chosen black.
Is there any way to get a strong color to show for the selected row in the new table?
Mike
Hey @mdsmith1,
You can use the Row Color setting to achieve this, e.g.
In this example I've used {{ currentRow.id === table1.selectedRow.id ? "black" : "" }}
Row Color will iterate the script for each row and return the result, so in this case it will return black only when the selectedRow matches its id.
Hope this helps!
Thank you Miguel:
I am getting the general idea but I am not clear on the Id.
The primary index is SerialNo. I tried that and the entire screen has gone black.
Mike
Hi Mike,
That means that the terniary is returning true for all rows. Can you share the script you're using?
You can hover over both currentRow and [yourtable].selectedRow to see the available keys and making sure they're both available and correctly written. If the primary key is SerialNo then you would have something like {{ currentRow.SerialNo === table1.selectedRow.SerialNo ? "black" : "" }}, making sure of course you're referencing the table with the correct name as well as the keys.
Miguel:
You say "Hover over the Current Row"
How do I do that?
Mike