/// import { PivotTableProps } from '../../../../props'; export declare const PIVOT_WIDGET_PADDING = 8; /** * Pivot table with pagination. * * @example * ```tsx * import { PivotTable } from '@sisense/sdk-ui'; * import * as DM from './sample-ecommerce'; * import { measureFactory } from '@sisense/sdk-data'; * * const CodeExample = () => { * return ( * * ); * }; * * export default CodeExample; * ``` * * * * Additional examples: * * Highlighting relative magnitude within a column with data bars: * ```tsx * import { PivotTable } from '@sisense/sdk-ui'; * import * as DM from './sample-ecommerce'; * import { measureFactory } from '@sisense/sdk-data'; * * const CodeExample = () => { * return ( * * ); * }; * * export default CodeExample; * ``` * * * * Sorting rows: `Condition` and `Age Range` rows sorted directly by their own values (equivalent to a user clicking a row heading and choosing Sort Descending): * ```tsx * import { PivotTable } from '@sisense/sdk-ui'; * import * as DM from './sample-ecommerce'; * import { measureFactory } from '@sisense/sdk-data'; * * const CodeExample = () => { * return ( * * ); * }; * * export default CodeExample; * ``` * * * * Sorting rows by a value column: `Age Range` sorted by its `Revenue` values (equivalent to a user clicking the `Revenue` value heading and sorting `Age Range` Descending): * ```tsx * import { PivotTable } from '@sisense/sdk-ui'; * import * as DM from './sample-ecommerce'; * import { measureFactory } from '@sisense/sdk-data'; * * const CodeExample = () => { * return ( * * ); * }; * * export default CodeExample; * ``` * * * * Grand totals across rows and columns: * ```tsx * import { PivotTable } from '@sisense/sdk-ui'; * import * as DM from './sample-ecommerce'; * import { measureFactory } from '@sisense/sdk-data'; * * const CodeExample = () => { * return ( * * ); * }; * * export default CodeExample; * ``` * * * * Grand totals plus a subtotal row per `Year`, via {@link PivotTableDataOptions.rows}' `includeSubTotals`: * ```tsx * import { PivotTable } from '@sisense/sdk-ui'; * import * as DM from './sample-ecommerce'; * import { measureFactory } from '@sisense/sdk-data'; * * const CodeExample = () => { * return ( * * ); * }; * * export default CodeExample; * ``` * * * * @remarks * Configuration options can also be applied within the scope of a `` to control the default behavior of PivotTable, by changing available settings within `appConfig.chartConfig.tabular.*` * * Follow the link to {@link AppConfig} for more details on the available settings. * * @param props - Pivot Table properties * @returns Pivot Table component * @group Data Grids */ export declare const PivotTable: import("react").FunctionComponent;