view - How do I style a gwt 2.1 CellTables headers? -
i see nothing in documentation except reference include "cssresource" , clientbundle, how override tbody , th of celltable?
is possible?
create interface:
interface tableresources extends celltable.resources { @source({celltable.style.default_css, "<your css file>.css"}) tablestyle celltablestyle(); } interface tablestyle extends celltable.style { }
and initialize cell table:
celltable.resources resources = gwt.create(tableresources.class); table = new celltable<someproxy>(rowsize, resources);
in cellview.client package can find default gwt css files. yo use starting point. in "<your css file>.css"
put specific style changes.
you can set colum style (on col element):
table.addcolumnstylename(colnumer, "some_css_style_name");
or better use css resource name instead of string "some_css_style_name".
Comments
Post a Comment