-
26 Jun 2011 11:00 AM #1
Change font-size on GXT button.
Change font-size on GXT button.
Hello, I'm trying to change the font-size of the text on a GXT button but that doesn't work. I tried this way.
My CSS
Then, in my code I do myBtn.setStyleName("myCSS");Code:.myCSS .x-btn-text { font-size: 20px; }
Here is the result! font-size is ok but a "normal" button is on top of the GXT button.
btn.jpg
-
26 Jun 2011 11:10 AM #2
setStyleName is clearing out other styles. What you want to do is addStyleName
-
26 Jun 2011 11:27 AM #3
-
12 Jul 2012 12:57 AM #4
I have a button 'Cancel' and i want to minimize the font size of the text.
I am applying the cssClass to the button as shown below:
button code:
{xtype: 'button',text: 'Cancel', cls:'btnCancelCls'}
css class:
.btnCancelCls
{
text-decoration:underline;
font-size:5px !important;
}
but font size of the button text is not affecting,
can any one help me out in this


Reply With Quote