Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Condition based styling for cells(Set different styles to cells based on value)
Condition based styling for cells [message #1740293] Thu, 11 August 2016 09:38 Go to next message
Prasmit Pansare is currently offline Prasmit PansareFriend
Messages: 3
Registered: January 2012
Junior Member
Hi Guys,

I am very new to Nat table, I am trying to figure out how can we provide different styles to cell based on its values.

For example,
1. If Cell value is "XYZ" set cell background color as Red.
2. If cell value is "ABC" set cell background color as Blue.

I am aware that "configRegistry" has to be used but how to apply config registry for specific condition.

Any code snippet will really help.

Thanks in advance.

Thanks,
Prasmit

Re: Condition based styling for cells [message #1740300 is a reply to message #1740293] Thu, 11 August 2016 10:39 Go to previous message
Arye Shemesh is currently offline Arye ShemeshFriend
Messages: 37
Registered: November 2012
Member
Hi,

please check the styling documentation.
Below there's a section on conditional styling with code examples.
Previous Topic:Remove selection anchor
Next Topic:Cell Edit Event Configuration
Goto Forum:
  


Current Time: Wed Apr 24 19:48:43 GMT 2024

Powered by FUDForum. Page generated in 0.02862 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top