I was wondering if it is possible to put a button into a panel's toolbar but have it retain the look of a button as if it was just in a plain panel.
For example, i want the button to look like this:
However, it looks like this:
Thanks so much!
EDIT
Code to create toolbar:
xtype: 'toolbar',
items:
[
{
xtype: 'button',
text: 'Select bounding box on map',
id: 'bbBoxButton',
icon: 'img/cross_cursor.gif',
listeners: {
click: function(){
polygonControl.activate();
}
}
}
]
Code to create regular button:
{xtype: 'button', id: 'bboxButton', text: 'Select bounding box on map', icon: 'img/cross_cursor.gif', listeners: {click: function(){polygonControl.activate()}}}
I believe I have to use the cls config for the button, but i cannot seem to find the appropriate css class.
I had the exact same issue. To solve, I pass this into the button:
cls:'x-btn-default-small'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With