UNPKG

@shridey/intelligentable

Version:

Intelligentable is a highly customizable, fully-types, performant, and feature-rich React component library built on top of handpicked industry-level production-grade UI Components for modern web applications.

20 lines (19 loc) 1.12 kB
import type { TableColumnType } from "antd"; import type { IntelligentTableColorConfigType } from "./IntelligentTableColorConfigType"; /** * Extended column type for IntelligentTable. * * @extends TableColumnType * @property {IntelligentTableColumnType[]} [children] - Nested columns for grouped headers. * @property {number} [roundOff] - Number of decimal places to round numeric values in this column. * @property {IntelligentTableColorConfigType[]} [colorConfig] - Array of color rules for dynamic cell coloring. * @property {"sum" | "average" | "count" | "max" | "min"} [summaryOperation] - Summary operation to display in the summary row for this column. * @property {boolean} [displaySummaryOperationInSummary] - Whether to display the summary operation name in the summary row. */ export interface IntelligentTableColumnType extends TableColumnType { children?: IntelligentTableColumnType[]; roundOff?: number | undefined; colorConfig?: IntelligentTableColorConfigType[]; summaryOperation?: "sum" | "average" | "count" | "max" | "min"; displaySummaryOperationInSummary?: boolean; }