Monday, April 6, 2015

How to Apply Styling to particular Cell table Row ?

I Would like to apply background color to particular cell table row element based on some condition, I found one API method 
 getRowElement(rowNo).getStyle().setBackgroundColor

    public void setRowStyleCell(final int rowNo){
        getRowElement(rowNo).getStyle().setBackgroundColor(style);
    }

but its not taking this styling because of some other styling(Pseudocode Styling) which is already applied to this cell table(got high priority).

    tr:nth-child(odd){background:none !important;}
    
    tr:nth-child(even) {background:none !important;}

Is there any way to override this styling in gwt?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment