【发布时间】:2012-01-18 15:46:31
【问题描述】:
我想知道是否可以将按钮放入面板的工具栏中,但让它保留按钮的外观,就好像它只是在普通面板中一样。
例如,我希望按钮看起来像这样:
但是,它看起来像这样:
非常感谢!
编辑
创建工具栏的代码:
xtype: 'toolbar',
items:
[
{
xtype: 'button',
text: 'Select bounding box on map',
id: 'bbBoxButton',
icon: 'img/cross_cursor.gif',
listeners: {
click: function(){
polygonControl.activate();
}
}
}
]
创建常规按钮的代码:
{xtype: 'button', id: 'bboxButton', text: 'Select bounding box on map', icon: 'img/cross_cursor.gif', listeners: {click: function(){polygonControl.activate()}}}
我相信我必须为按钮使用 cls 配置,但我似乎找不到合适的 css 类。
【问题讨论】:
-
请包含您尝试过的代码..
标签: button extjs styles toolbar