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

Definition

Package:@progress/kendo-vue-pivotgrid

Syntax:

vue
<script setup>
const { pivotProps, configuratorProps, state } = usePivotLocalDataService({
    data, dimensions, measures, defaultColumnAxes, defaultRowAxes, defaultMeasureAxes
});
</script>
<template>
    <PivotGrid v-bind="pivotProps" />
</template>

A Vue composable which provides data-binding to local data.

Opening an axis's Include Fields menu loads its distinct display values from the current local data.

Parameters:argsPivotLocalDataServiceArgsReturns:

{ pivotProps: ComputedRef​<PivotGridProps>; configuratorProps: ComputedRef​<PivotServiceConfiguratorProps>; state: ComputedRef​<{ loading: boolean }> }

Example:
vue
<script setup>
const { pivotProps, configuratorProps, state } = usePivotLocalDataService({
    data, dimensions, measures, defaultColumnAxes, defaultRowAxes, defaultMeasureAxes
});
</script>
<template>
    <PivotGrid v-bind="pivotProps" />
</template>