小编JoJ*_*gel的帖子

ExtJs Ext.PagingToolbar:隐藏或设置刷新按钮的参数onclick?

没有自定义的刷新按钮设置,所以我试图隐藏/删除它. hideRefresh: true不适合我.

如果没有办法隐藏它,我可以在单击按钮时至少传递一些参数,这样我可以让它做一些有意义的任务吗?

pPanel = new Ext.Panel({
    applyTo: 'newProgWin',
    autoScroll:true,
    styleClass: 'formInput',
    bodyStyle: 'overflow-x: hidden',
    align: 'center',
    layout:'fit',
    width:899,
    height:450,
    closeAction:'hide',
    plain: true,
    items: winDataView = new Ext.DataView({
        tpl: resultTpl,
        store: npDs,
       itemSelector: 'div.search-item'
    }),

    tbar: [
                'Search: ', ' ',
            (winSearchField = new Ext.ux.form.SearchField({
                store: npDs,
                width:300
            }))
        ],
    bbar: new Ext.PagingToolbar({
                beforeLoad : function()
                {
                    pocProxy.extraParams = {
                        eps: currentProgs,
                        stateful: true,
                        dataCall: dataCallId,
                        orgNameConvention: currentOnc,
                        installation: currentInstallation
                    };
                },   
                store: npDs,
                pageSize: pageSize,
                displayInfo: true, …
Run Code Online (Sandbox Code Playgroud)

extjs refresh hide

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

标签 统计

extjs ×1

hide ×1

refresh ×1