Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT: Adding HTML / Label to flowPanel

Tags:

gwt

I would like to use a flowPanel to contain a list of tags. The tag contain a name and a close button.

However, when I add HTML / Label to flowPanel, it will create a new line because it's a DIV element.

If the HTML / Label is a span element, there is no new line. However, I can't create spanElement on demand.

Does anyone has any suggestion? Thanks in advance.

like image 357
Yau Leung Avatar asked Jan 22 '23 06:01

Yau Leung


2 Answers

Check out the InlineLabel and/or InlineHTML widgets.

like image 172
z00bs Avatar answered Feb 08 '23 22:02

z00bs


set the css style of the Label like this : display: inline;

like image 44
Hao Zheng Avatar answered Feb 08 '23 20:02

Hao Zheng