You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*This file is part of Ext JS 3.4
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License UsageThis file may be used under the terms of the GNU General Public License version 3.0 aspublished by the Free Software Foundation and appearing in the file LICENSE included in thepackaging of this file.
Please review the following information to ensure the GNU General Public License version 3.0requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you are unsure which license is appropriate for your use, please contact the sales departmentat http://www.sencha.com/contact.
Build date: 2013-04-03 15:07:25*/Ext.data.JsonP.Ext_PagingToolbar({"alternateClassNames":[],"aliases":{"widget":["paging"]},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":"Ext.Toolbar","uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.util.Observable' rel='Ext.util.Observable' class='docClass'>Ext.util.Observable</a><div class='subclass '><a href='#!/api/Ext.Component' rel='Ext.Component' class='docClass'>Ext.Component</a><div class='subclass '><a href='#!/api/Ext.BoxComponent' rel='Ext.BoxComponent' class='docClass'>Ext.BoxComponent</a><div class='subclass '><a href='#!/api/Ext.Container' rel='Ext.Container' class='docClass'>Ext.Container</a><div class='subclass '><a href='#!/api/Ext.Toolbar' rel='Ext.Toolbar' class='docClass'>Ext.Toolbar</a><div class='subclass '><strong>Ext.PagingToolbar</strong></div></div></div></div></div></div><h4>Files</h4><div class='dependency'><a href='source/PagingToolbar.html#Ext-PagingToolbar' target='_blank'>PagingToolbar.js</a></div></pre><div class='doc-contents'><p>As the amount of records increases, the time required for the browser to render\nthem increases. Paging is used to reduce the amount of data exchanged with the client.\nNote: if there are more records/rows than can be viewed in the available screen area, vertical\nscrollbars will be added.</p>\n\n\n<p>Paging is typically handled on the server side (see exception below). The client sends\nparameters to the server side, which the server needs to interpret and then respond with the\napproprate data.</p>\n\n\n<p><b><a href=\"#!/api/Ext.PagingToolbar\" rel=\"Ext.PagingToolbar\" class=\"docClass\">Ext.PagingToolbar</a></b> is a specialized toolbar that is bound to a <a href=\"#!/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Ext.data.Store</a>\nand provides automatic paging control. This Component <a href=\"#!/api/Ext.data.Store-method-load\" rel=\"Ext.data.Store-method-load\" class=\"docClass\">load</a>s blocks\nof data into the <tt><a href=\"#!/api/Ext.PagingToolbar-cfg-store\" rel=\"Ext.PagingToolbar-cfg-store\" class=\"docClass\">store</a></tt> by passing <a href=\"#!/api/Ext.data.Store-cfg-paramNames\" rel=\"Ext.data.Store-cfg-paramNames\" class=\"docClass\">paramNames</a> used for\npaging criteria.</p>\n\n\n<p>PagingToolbar is typically used as one of the Grid's toolbars:</p>\n\n\n<pre><code><a href=\"#!/api/Ext.QuickTips-method-init\" rel=\"Ext.QuickTips-method-init\" class=\"docClass\">Ext.QuickTips.init</a>(); // to display button quicktips\n\nvar myStore = new <a href=\"#!/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Ext.data.Store</a>({\n reader: new <a href=\"#!/api/Ext.data.JsonReader\" rel=\"Ext.data.JsonReader\" class=\"docClass\">Ext.data.JsonReader</a>({\n <a href=\"#!/api/Ext.data.JsonReader-cfg-totalProperty\" rel=\"Ext.data.JsonReader-cfg-totalProperty\" class=\"docClass\">totalProperty</a>: 'results', \n ...\n }),\n ...\n});\n\nvar myPageSize = 25; // server script should only send back 25 items at a time\n\nvar grid = new <a href=\"#!/api/Ext.grid.GridPanel\" rel=\"Ext.grid.GridPanel\" class=\"docClass\">Ext.grid.GridPanel</a>({\n ...\n store: myStore,\n bbar: new <a href=\"#!/api/Ext.PagingToolbar\" rel=\"Ext.PagingToolbar\" class=\"docClass\">Ext.PagingToolbar</a>({\n <a href=\"#!/api/Ext.PagingToolbar-cfg-store\" rel=\"Ext.PagingToolbar-cfg-store\" class=\"docClass\">store</a>: myStore, // grid and PagingToolbar using same store\n <a href=\"#!/api/Ext.PagingToolbar-cfg-displayInfo\" rel=\"Ext.PagingToolbar-cfg-displayInfo\" class=\"docClass\">displayInfo</a>: true,\n <a href=\"#!/api/Ext.PagingToolbar-cfg-pageSize\" rel=\"Ext.PagingToolbar-cfg-pageSize\" class=\"docClass\">pageSize</a>: myPageSize,\n <a href=\"#!/api/Ext.PagingToolbar-cfg-prependButtons\" rel=\"Ext.PagingToolbar-cfg-prependButtons\" class=\"docClass\">prependButtons</a>: true,\n items: [\n 'text 1'\n ]\n })\n});\n</code></pre>\n\n\n\n\n<p>To use pagi
|