Home >Web Front-end >JS Tutorial >ExtJS toolbar paging event parameters_extjs

ExtJS toolbar paging event parameters_extjs

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 18:33:06935browse

For example: When loading the first page,
code:

Copy code The code is as follows:

store.load({params:{start:0,limit:pageSize,Keyword:Ext.getCmp('input_name').getValue()}});

When click next Page (previous page) with parameters
Copy code The code is as follows:

doLoad: function (start){
record_start = start;
var o = {}, pn = this.paramNames;
o[pn.start] = start;
o[pn.limit] = this. pageSize;
var Keyword=Ext.getCmp('input_name').getValue(); //Get parameters
o['Keyword'] = Keyword;//Write parameters
this.store.load ({params:o});//Loading
}
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