ext列表頁面關于多行查詢的辦法_YUI.Ext相關
來源:懂視網
責編:小采
時間:2020-11-27 20:48:12
ext列表頁面關于多行查詢的辦法_YUI.Ext相關
ext列表頁面關于多行查詢的辦法_YUI.Ext相關:首先在Ext.grid.GridPanel中必須要有tbar對象 然后要增加listeners: { 'render': function() { bbar2.render(this.tbar); //add one tbar //twoTbar.render(this.tbar); //add two tbar // threeTbar.r
導讀ext列表頁面關于多行查詢的辦法_YUI.Ext相關:首先在Ext.grid.GridPanel中必須要有tbar對象 然后要增加listeners: { 'render': function() { bbar2.render(this.tbar); //add one tbar //twoTbar.render(this.tbar); //add two tbar // threeTbar.r

首先在Ext.grid.GridPanel中必須要有tbar對象
然后要增加listeners: {
'render': function() {
bbar2.render(this.tbar); //add one tbar
//twoTbar.render(this.tbar); //add two tbar
// threeTbar.render(this.tbar); //add three tbar
}
}
可以看到這里有bbar2這樣就可以增加很多bar了
代碼如下:
this.bbar2 = new Ext.Toolbar({
renderTo: grid.tbar,
items:[]})
當然 有個小技巧 分隔符可以用“-”來表示
這樣就ok了
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
ext列表頁面關于多行查詢的辦法_YUI.Ext相關
ext列表頁面關于多行查詢的辦法_YUI.Ext相關:首先在Ext.grid.GridPanel中必須要有tbar對象 然后要增加listeners: { 'render': function() { bbar2.render(this.tbar); //add one tbar //twoTbar.render(this.tbar); //add two tbar // threeTbar.r