sencha panel的头header上添加刷新按钮


var plet3=Ext.create('portaltest3.view.Portlet',
                  {


                    title: '提醒',
                        layout:'fit',
                    height:300,
                    items:Ext.create('portaltest3.view.Desktop_3'),
                      tools:
[
                {
                    xtype: 'tool',
                    type:'refresh',

                    tooltip: '刷新',
                    listeners: {
                        click: {
                            fn:refreshTX
                        }

                    }
                }
            ]


                  });


function refreshTX(tool, e, eOpts) {
                              //alert('刷新');
                              Ext.getStore("Desktop_8Store").reload();

                        }



版权声明:本文为博主原创文章,未经博主允许不得转载。

作者:xuejianxiyang
出处:http://xuejianxiyang.cnblogs.com
关于作者:Heaven helps those who help themselves.
本文版权归原作者和博客园共有,欢迎转载,但未经原作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

原文地址:https://www.cnblogs.com/xuejianxiyang/p/4862068.html