Hello Xavier

You should take a look at Header class (in 
com.google.gwt.user.cellview.client package) by extending it you'll have 
access to the Template in use, maybe you can declare your own or just 
override render method  and inject your code to the SafeHtmlBuilder

@Override
public void render(Context context, SafeHtmlBuilder sb) {
// do what you want with the builder
// sb.append(XXXX);
}


Olivier.
Le samedi 10 mars 2012 12:35:51 UTC+1, Xavier S. a écrit :
>
> Hello Jose,
> Thanks for your answer!
> I wasn't aware of the CellTable.Resources classes, it seems to fit my 
> needs. But (there's always a but :) ).
> The generated html code for that sort arrow is the following :
>
>> <div 
>> style="left:0px;margin-top:-4px;position:absolute;top:50%;line-height:0px;">
>> <img onload="this.__gwtLastUnhandledEvent=&quot;load&quot;;" src="
>> http://127.0.0.1:8888/main/clear.cache.gif"; style="width: 11px; height: 
>> 7px; background: url(data:image/png;base64,SOMEBASE64CODE) no-repeat 0px 
>> 0px;" border="0">
>> </div>
>
>
> And I would like to change it to something like this :
>
>> <div style="left:0px;margin-top:-4px;position:absolute;top: 
>> 30%;line-height:0px;">
>>
> <i class="icon-arrow-up"></i>
>
> </div>
>
>
> So mostly change the <img> tag by a <i> one where I can use twitter 
> bootstrap css icons and maybe change the top style arg of the enclosing div.
>
> Is there any way to do it with GWT?
>
> Thanks again and best regards,
>
> Xavier
>
>
> On Saturday, March 10, 2012 6:15:45 AM UTC+1, JoseM wrote:
>>
>> You can control what to show for that with the CellTable Resources. You 
>> would have to pass in your own resources to the CellTable constructor that 
>> overrides the sort style to display what you want. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/QRfhQR0C6Y0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to