You can use any widget as the element in the tab, so you could create
a composite with a label and X cancel button.  Here's the doc for
doing it programatically:

http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/TabLayoutPanel.html#add%28com.google.gwt.user.client.ui.Widget,%20com.google.gwt.user.client.ui.Widget%29

Not sure how you specify this in UIBinder but I'm sure there's a way.

On Apr 23, 1:18 pm, Lex <[email protected]> wrote:
> Hello  there..
>
> First time here, so be gentle with me. :-)
>
> I've searched around, but couldn't find the answer to my question, so
> here it goes.
>
> I have added the Tab(s)s to the TabLayoutPanel through UiBinder and
> programmatically. However, I needed a way to remove this tab from the
> TabLayoutPanel when the user clicks on the "x" icon or similar in the
> Tab header.
>
> I can't seem to find the way to add this "x" icon to the header, nor a
> way to extend the <g:header> to provide the image or a text.
>
> Can anyone help or direct me to the link where I can find more info?
>
> Cheers.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to