New to Kendo UI for Vue? Start a free 30-day trial

Represents the props of the Kendo UI for Vue PivotGrid component.

The class and style attributes are applied to the top-most element in addition to the default k-pivotgrid class.

The customization props (row, column, cell, headerCell and the advanced columnHeaders*, rowHeaders*, data* props) accept a slot name, a component or a render function. The slot receives { props, listeners, defaultSlots } where props contains all props and listeners of the default component.

Definition

Package:@progress/kendo-vue-pivotgrid

Properties

cell?

string | object | (args: any[]) => any

Overrides the default cell component.

The default component is: PivotGridCell.

Example:
vue
<PivotGrid :cell="'myCell'">
    <template #myCell="{ props, defaultSlots }">
        <PivotGridCell v-bind="props" :style="{ color: props.total ? 'red' : undefined }">{{ defaultSlots }}</PivotGridCell>
    </template>
</PivotGrid>

column?

string | object | (args: any[]) => any

Overrides the default column component.

The default component is: PivotGridColumn.

Example:
vue
<PivotGrid :column="'myColumn'">
    <template #myColumn="{ props }">
        <PivotGridColumn v-bind="props" />
    </template>
</PivotGrid>

The configuration of the column axes.

Example:
vue
<PivotGrid :column-axes="[{ name: ['[Product].[Category]'], expand: true }]" />

columnHeadersCell?

string | object | (args: any[]) => any

Overrides the default column-headers headerCell component.

The default component is: PivotGridHeaderCell.

Example:
vue
<PivotGrid :column-headers-cell="'myHeaderCell'" />

columnHeadersColumn?

string | object | (args: any[]) => any

Overrides the default column-headers column component.

The default component is: PivotGridColumn.

Example:
vue
<PivotGrid :column-headers-column="'myColumn'" />

columnHeadersRow?

string | object | (args: any[]) => any

Overrides the default column-headers row component.

The default component is: PivotGridRow.

Example:
vue
<PivotGrid :column-headers-row="'myRow'" />

Sets the columns data of the PivotGrid.

Example:
vue
<PivotGrid :columns="columns" />

Sets the data of the PivotGrid.

Example:
vue
<PivotGrid :data="[{ field: 'value', data: 100 }]" />

dataColumn?

string | object | (args: any[]) => any

Overrides the default data column component.

The default component is: PivotGridColumn.

Example:
vue
<PivotGrid :data-column="'myColumn'" />

dataRow?

string | object | (args: any[]) => any

Overrides the default data row component.

The default component is: PivotGridRow.

Example:
vue
<PivotGrid :data-row="'myRow'" />

headerCell?

string | object | (args: any[]) => any

Overrides the default headerCell component.

The default component is: PivotGridHeaderCell.

Example:
vue
<PivotGrid :header-cell="'myHeaderCell'">
    <template #myHeaderCell="{ props, defaultSlots }">
        <PivotGridHeaderCell v-bind="props">{{ defaultSlots }}</PivotGridHeaderCell>
    </template>
</PivotGrid>

id?

string

Sets the id property of the top-most element of the PivotGrid.

Example:
vue
<PivotGrid :id="'pivotgrid-id'" />

If set to true, the user can use dedicated shortcuts to interact with the PivotGrid. By default, navigation is disabled.

Default:

false

Example:
vue
<PivotGrid :navigatable="true" />

Fires whenever the columnAxes property should change.

Parameters:eventPivotGridAxesChangeEvent
Example:
vue
<PivotGrid @columnaxeschange="(event) => console.log(event.value)" />

Fires whenever the rowAxes property should change.

Parameters:eventPivotGridAxesChangeEvent
Example:
vue
<PivotGrid @rowaxeschange="(event) => console.log(event.value)" />

row?

string | object | (args: any[]) => any

Overrides the default row component.

The default component is: PivotGridRow.

Example:
vue
<PivotGrid :row="'myRow'">
    <template #myRow="{ props, defaultSlots }">
        <PivotGridRow v-bind="props"><component :is="() => defaultSlots" /></PivotGridRow>
    </template>
</PivotGrid>

The configuration of the row axes.

Example:
vue
<PivotGrid :row-axes="[{ name: ['[Geography].[City]'], expand: true }]" />

rowHeadersCell?

string | object | (args: any[]) => any

Overrides the default row-headers headerCell component.

The default component is: PivotGridHeaderCell.

Example:
vue
<PivotGrid :row-headers-cell="'myHeaderCell'" />

rowHeadersColumn?

string | object | (args: any[]) => any

Overrides the default row-headers column component.

The default component is: PivotGridColumn.

Example:
vue
<PivotGrid :row-headers-column="'myColumn'" />

rowHeadersRow?

string | object | (args: any[]) => any

Overrides the default row-headers row component.

The default component is: PivotGridRow.

Example:
vue
<PivotGrid :row-headers-row="'myRow'" />

Sets the rows data of the PivotGrid.

Example:
vue
<PivotGrid :rows="rows" />

tabIndex?

number

Sets the tabIndex property of the top-most element of the PivotGrid.

Example:
vue
<PivotGrid :tab-index="0" />