Skip to content
Advertisement

How to show specific color on top when multiple background colors are combined in nattable?

enter image description here

I added nattable configLabel to add background color.

But what if you want to display the blue color at the top when multiple background colors are combined?

Advertisement

Answer

The labels are managed in a LabelStack. The labels are interpreted top-down. That means if multiple labels are applied that all would have effect on the background color, the top most label wins. So if the blue color should win, the label that is responsible for the blue color needs to be on top of the label stack.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement