@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
22 lines (21 loc) • 1.35 kB
TypeScript
import * as React from 'react';
import { Layout, TableLayout } from '../../../../../types';
import { AggregationColumnValue } from '../../../../AdaptableState/Common/AggregationColumns';
export type GrandTotalRowPosition = 'top' | 'bottom' | 'pinnedTop' | 'pinnedBottom';
export declare const GRAND_TOTAL_ROW_LABELS: Record<GrandTotalRowPosition | 'off', string>;
export declare const GRAND_TOTAL_ROW_DESCRIPTIONS: Record<GrandTotalRowPosition | 'off', string>;
export declare const GRAND_TOTAL_ROW_OPTIONS: (GrandTotalRowPosition | 'off')[];
export declare function getGrandTotalRowKey(layout: Layout): GrandTotalRowPosition | 'off';
export declare function getGrandTotalRowLabel(layout: Layout): string;
export declare function getGrandTotalRowDescription(layout: Layout): string;
export declare function getAggFuncSummaryLabel(columnId: string, aggFunc: AggregationColumnValue, aggregationColumnsMap: Record<string, string>): string;
export declare const isAggregationsSectionValid: (data: Layout) => true | string;
export declare const AggregationsSectionSummary: React.FunctionComponent<{
layout?: TableLayout;
}>;
interface AggregationsSectionProps {
onChange: (data: TableLayout) => void;
layoutWizardMode?: 'create' | 'edit';
}
export declare const AggregationsSection: React.FunctionComponent<AggregationsSectionProps>;
export {};