Yau Leung
Yau Leung

Reputation: 678

GWT: Adding HTML / Label to flowPanel

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.

Upvotes: 4

Views: 3318

Answers (2)

Hao Zheng
Hao Zheng

Reputation: 119

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

Upvotes: 1

z00bs
z00bs

Reputation: 7498

Check out the InlineLabel and/or InlineHTML widgets.

Upvotes: 7

Related Questions