I am using a GWT CellTable.
I have a requirement where i want to make just a few columns in few of the rows to be bold, depending on the data of that column.
I can’t seem to find any clean implementation.
Any pointers would be helpful.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the style depends directly on the value of the cell, then you can extend
Columnand overridegetCellStyleNames.Otherwise you can use a
RowStylesto apply a CSS class name to the row (depending on the row object), useColumn#setCellStyleNameson the columns where cells have to be bold, and use a descendant selector in your CSS stylesheet to only apply bold style to cells at the cross of the row and column:(
rowWithBoldCellsis only applied to rows where some of the cells have to be bold, andcellMightbeBoldis applied to all cells in a given column).