相关疑难解决方法(0)

ExtJS按钮样式工具栏

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

例如,我希望按钮看起来像这样:

按钮样式

但是,它看起来像这样:

工具栏按钮

非常感谢!

编辑

创建工具栏的代码:

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类.

styles extjs toolbar button

9
推荐指数
1
解决办法
2万
查看次数

标签 统计

button ×1

extjs ×1

styles ×1

toolbar ×1