Properties Methods Events Config Options Direct Link
Observable
  Component
    PivotAxis

Class CQ.Ext.grid.PivotAxis

Package:CQ.Ext.grid
Class:PivotAxis
Extends:CQ.Ext.Component
Clientlib:cq.widgets

PivotAxis is a class that supports a CQ.Ext.grid.PivotGrid. Each PivotGrid contains two PivotAxis instances - the left axis and the top axis. Each PivotAxis defines an ordered set of dimensions, each of which should correspond to a field in a Store's Record (see CQ.Ext.grid.PivotGrid documentation for further explanation).

Developers should have little interaction with the PivotAxis instances directly as most of their management is performed by the PivotGrid. An exception is the dynamic reconfiguration of axes at run time - to achieve this we use PivotAxis's setDimensions function and refresh the grid:

var pivotGrid = new CQ.Ext.grid.PivotGrid({
    //some PivotGrid config here
});

//change the left axis dimensions
pivotGrid.leftAxis.setDimensions([
    {
        dataIndex: 'person',
        direction: 'DESC',
        width    : 100
    },
    {
        dataIndex: 'product',
        direction: 'ASC',
        width    : 80
    }
]);

pivotGrid.view.refresh(true);
This clears the previous dimensions on the axis and redraws the grid with the new dimensions.

Config Options

Config Options Defined By
  allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
  disabled : Boolean
Render this component disabled (default is false).
Component
  disabledClass : String
CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
Component
  orientation : String
One of 'vertical' or 'horizontal'. Defaults to horizontal
PivotAxis

Public Properties

Property Defined By
  disabled : Boolean
True if this component is disabled. Read-only.
Component
  hidden : Boolean
True if this component is hidden. Read-only.
Component
  initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
  refOwner : CQ.Ext.Container The
Component
  rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

Method Defined By

Public Events

Event Defined By