让toolbar.button以及formpanel中的button像个普通按钮

先把按钮默认的cls设置成鼠标放上去的样子x-btn-over。然后添加鼠标移开的事件。删除和添加这个样式

 

                 text : '查询',           

                   iconCls:'icon-find',   

                   cls:'x-btn-over',                      

                   listeners:{   

                       mouseout:function(){   

                            this.removeClass('x-btn-over');   

                      this.addClass('x-btn-over');                               

                       }   

                    },                     

                   handler : function() { 

 

 }

 

posted on 2011-12-08 12:08  毛毛亟亟  阅读(292)  评论(0编辑  收藏  举报

导航