user140053
user140053

Reputation:

How to change font size in GXT Label

With GXT 3.0, I failed to change the font size of a simple label:

Label title = new Label("Hello world");

title.getElement().setAttribute("font-size", "50px");

RootPanel.get().add(title);

Don't find anything in the doc!

Upvotes: 0

Views: 757

Answers (1)

Rafał Sokalski
Rafał Sokalski

Reputation: 2007

I know this answer is really late but there is a chance that someone else will have similar problem. So I found a solution like this:

title.setStyleAttribute("font-size", "30px");

Upvotes: 1

Related Questions