0

How can I change the styling/appearance of a TextButton in EXT GWT 3 ? I am mostly interested in the background color.

Thank you, Horatiu

Horatiu Jeflea
  • 7,256
  • 6
  • 38
  • 67

2 Answers2

2

GXT 2x was easier ... but ... GXT 3 is supposed to be easier to maintain for large projects.

Sencha gives different ways for GXT 3 but the one I think I will use is to create an appearance and then pass it in via a constructor. Here is their example:

ContentPanel redContentPanel = new ContentPanel(new RedContentPanelAppearance());

The complete example is at: Sencha's explanation and reasoning

Think you have to create your own appearance (based off an existing one and changing the bit you want) Not trivial it seems.

More reasoning on the Appearance usage is at gxt3 appearance explanation

user1258245
  • 3,639
  • 2
  • 18
  • 23
0

Take a look at the style classes defined in ButtonCellBase.css and override them in your css.

udalmik
  • 7,838
  • 26
  • 40