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.

20 lines
178 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. This file is part of Ext JS 3.4
  3. Copyright (c) 2011-2013 Sencha Inc
  4. Contact: http://www.sencha.com/contact
  5. GNU General Public License Usage
  6. This file may be used under the terms of the GNU General Public License version 3.0 as
  7. published by the Free Software Foundation and appearing in the file LICENSE included in the
  8. packaging of this file.
  9. Please review the following information to ensure the GNU General Public License version 3.0
  10. requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  11. If you are unsure which license is appropriate for your use, please contact the sales department
  12. at http://www.sencha.com/contact.
  13. Build date: 2013-04-03 15:07:25
  14. */
  15. Ext.data.JsonP.Ext_grid_PivotAxis({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":"Ext.Component","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 '><strong>Ext.grid.PivotAxis</strong></div></div></div><h4>Files</h4><div class='dependency'><a href='source/PivotAxis.html#Ext-grid-PivotAxis' target='_blank'>PivotAxis.js</a></div></pre><div class='doc-contents'><p>PivotAxis is a class that supports a <a href=\"#!/api/Ext.grid.PivotGrid\" rel=\"Ext.grid.PivotGrid\" class=\"docClass\">Ext.grid.PivotGrid</a>. Each PivotGrid contains two PivotAxis instances - the left\naxis and the top axis. Each PivotAxis defines an ordered set of dimensions, each of which should correspond to a field in a\nStore's Record (see <a href=\"#!/api/Ext.grid.PivotGrid\" rel=\"Ext.grid.PivotGrid\" class=\"docClass\">Ext.grid.PivotGrid</a> documentation for further explanation).</p>\n\n\n<p>Developers should have little interaction with the PivotAxis instances directly as most of their management is performed by\nthe PivotGrid. An exception is the dynamic reconfiguration of axes at run time - to achieve this we use PivotAxis's \n<a href=\"#!/api/Ext.grid.PivotAxis-method-setDimensions\" rel=\"Ext.grid.PivotAxis-method-setDimensions\" class=\"docClass\">setDimensions</a> function and refresh the grid:</p>\n\n\n<pre><code>var pivotGrid = new <a href=\"#!/api/Ext.grid.PivotGrid\" rel=\"Ext.grid.PivotGrid\" class=\"docClass\">Ext.grid.PivotGrid</a>({\n //some PivotGrid config here\n});\n\n//change the left axis dimensions\npivotGrid.leftAxis.setDimensions([\n {\n dataIndex: 'person',\n direction: 'DESC',\n width : 100\n },\n {\n dataIndex: 'product',\n direction: 'ASC',\n width : 80\n }\n]);\n\npivotGrid.view.refresh(true);\n</code></pre>\n\n\n<p>This clears the previous dimensions on the axis and redraws the grid with the new dimensions.</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-allowDomMove' class='member first-child inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Component' rel='Ext.Component' class='defined-in docClass'>Ext.Component</a><br/><a href='source/Component.html#Ext-Component-cfg-allowDomMove' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Component-cfg-allowDomMove' class='name expandable'>allowDomMove</a><span> : Boolean</span></div><div class='description'><div class='short'>Whether the component can move the Dom node when rendering (defaults to true). ...</div><div class='long'><p>Whether the component can move the Dom node when rendering (defaults to true).</p>\n<p>Defaults to: <code>true</code></p></div></div></div><div id='cfg-applyTo' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Component' rel='Ext.Component' class='defined-in docClass'>Ext.Component</a><br/><a href='source/Component.html#Ext-Component-cfg-applyTo' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Component-cfg-applyTo' class='name expandable'>applyTo</a><span> : Mixed</span></div><div class='description'><div class='short'>Specify the id of the element, a DOM element or an existing Element corresponding to a DIV\nthat is already present in...</div><div class='long'><p>Specify the id of the element, a DOM element or an existing Element corresponding to a DIV\nthat is already present in the document that specifies some structural markup for this\ncomponent.</p>\n\n\n<div><ul>\n<li><b>Descr