Home  >  Article  >  Web Front-end  >  Methods for multi-line query on ext list page_YUI.Ext related

Methods for multi-line query on ext list page_YUI.Ext related

WBOY
WBOYOriginal
2016-05-16 18:31:25962browse

First, there must be a tbar object

in Ext.grid.GridPanel and then add listeners: {
'render': function() {
bbar2.render(this.tbar); // add one tbar
//twoTbar.render(this.tbar); //add two tbar
// threeTbar.render(this.tbar); //add three tbar
}
}

You can see that there is bbar2 here so you can add a lot of bars

Copy the code The code is as follows:

this.bbar2 = new Ext.Toolbar({
renderTo: grid.tbar,
items:[]})


Of course There is a little trick. You can use "-" as the separator to represent

and it will be ok.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn