开发者

How to insert HTML in TabPanel tab text?

When adding a tab in a TabPanel in GWT the parameter is:

public void add(Widget w, String tabText){...};

How to tell the TabPanel to treat 'tabtext' as HTML? Because the string I am inserting is actually a HTML. Inse开发者_StackOverflowrting HTML in MenuItem can be easily be done with MenuItem:

public MenuItem(String text, boolean asHTML, Command cmd){...}

However, this is not the case with TabPanel, anyone have ideas to insert HTML with TabPanel 'tabText'?

Thanks


There is this method according to the JavaDoc for TabPanel: http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/TabPanel.html

How to insert HTML in TabPanel tab text?

I haven't actually tried if it works or not, but it should!

Good luck!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜