ExtJS按钮样式工具栏 [英] ExtJS Button Style Toolbar

查看:173
本文介绍了ExtJS按钮样式工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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:

非常感谢!

编辑

创建工具栏的代码:

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

I believe I have to use the cls config for the button, but i cannot seem to find the appropriate css class.

推荐答案

这个链接似乎正是我想要的。

This link seemed to answer exactly what i wanted.

看看zombeerose对3.0解决方案的回应。

Look at zombeerose's response for 3.0 solution.

http://www.sencha.com/论坛/ showthread.php?57130 - 工具栏按钮样式

这篇关于ExtJS按钮样式工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆