@syncfusion/ej2-react-grids
Version:
Feature-rich JavaScript datagrid (datatable) control with built-in support for editing, filtering, grouping, paging, sorting, and exporting to Excel. for React
35 lines (34 loc) • 1.33 kB
TypeScript
import { ComplexBase } from '@syncfusion/ej2-react-base';
import { AggregateColumnModel } from '@syncfusion/ej2-grids';
export interface AggregateColumnDirTypecast {
footerTemplate?: string | Function | any;
groupFooterTemplate?: string | Function | any;
groupCaptionTemplate?: string | Function | any;
}
/**
* `AggregateColumnDirective represent a aggregate column of the react Grid.
* ```tsx
* <GridComponent dataSource={data} allowPaging={true} allowSorting={true}>
* <ColumnsDirective>
* <ColumnDirective field='ID' width='100'></ColumnDirective>
* <ColumnDirective field='name' headerText='Name' width='100'></ColumnDirective>
* </ColumnsDirective>
* <AggregatesDirective>
* <AggregateDirective>
* <AggregateColumnsDirective>
* <AggregateColumnDirective field='ID' type='Min'></AggregateColumnsDirective>
* </AggregateColumnsDirective>
* </AggregateDirective>
* </AggregatesDirective>
* </GridComponent>
* ```
*/
export declare class AggregateColumnDirective extends ComplexBase<AggregateColumnModel | AggregateColumnDirTypecast & {
children?: React.ReactNode;
}, AggregateColumnModel | AggregateColumnDirTypecast> {
static moduleName: string;
}
export declare class AggregateColumnsDirective extends ComplexBase<{}, {}> {
static propertyName: string;
static moduleName: string;
}