UNPKG

explore-tables

Version:

A React component library for building interactive pivot tables focused on data analysis and visualization. Perfect for creating in-house analytics dashboards and ad-hoc data exploration pages.

60 lines (50 loc) 1.58 kB
import { JSX as JSX_2 } from 'react/jsx-runtime'; export declare const PivotTable: ({ rows, fields, measures, dimensions, pivots, elements }: PivotTableProperties) => JSX_2.Element; export declare interface PivotTableProperties { rows: Array<{ [key: string]: any; }>; fields: Array<{ id: string; name?: string; }>; measures?: Array<string>; dimensions?: Array<string>; pivots?: Array<string>; elements?: TableOverrideConfig; } export declare interface TableColumnTitleInterface { (params: TableColumnTitleParameters): JSX.Element; } export declare interface TableColumnTitleParameters { field?: string; title?: string; colSpan?: number; empty?: boolean; } export declare interface TableColumnValueInterface { (params: TableColumnValueParameters): JSX.Element; } export declare interface TableColumnValueParameters { field?: string; value?: string; colSpan?: number; empty?: boolean; } export declare interface TableElement { (params: { children: React.ReactNode; }): JSX.Element; } export declare interface TableOverrideConfig { TableContainer?: TableElement; TableRow?: TableElement; Table?: TableElement; ColumnTitle?: TableColumnTitleInterface; ColumnValue?: TableColumnValueInterface; PivotTitle?: TableColumnTitleInterface; PivotValue?: TableColumnValueInterface; MeasureTitle?: TableColumnTitleInterface; MeasureValue?: TableColumnValueInterface; } export { }