我想知道是否可以将一个按钮放入面板的工具栏中,但是它保留了一个按钮的外观,就像它只是在一个普通的面板中一样.
例如,我希望按钮看起来像这样:

但是,它看起来像这样:

非常感谢!
编辑
创建工具栏的代码:
xtype: 'toolbar',
items:
[
{
xtype: 'button',
text: 'Select bounding box on map',
id: 'bbBoxButton',
icon: 'img/cross_cursor.gif',
listeners: {
click: function(){
polygonControl.activate();
}
}
}
]
Run Code Online (Sandbox Code Playgroud)
用于创建常规按钮的代码:
{xtype: 'button', id: 'bboxButton', text: 'Select bounding box on map', icon: 'img/cross_cursor.gif', listeners: {click: function(){polygonControl.activate()}}}
Run Code Online (Sandbox Code Playgroud)
我相信我必须使用按钮的cls配置,但我似乎无法找到合适的css类.