UNPKG

@syncfusion/ej2-react-treegrid

Version:
52 lines (51 loc) 2.13 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { ComplexBase } from '@syncfusion/ej2-react-base'; /** * `AggregateColumnDirective represent a aggregate column of the react TreeGrid. * ```tsx * <TreeGridComponent 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> * </TreeGridComponent> * ``` */ var AggregateColumnDirective = /** @class */ (function (_super) { __extends(AggregateColumnDirective, _super); function AggregateColumnDirective() { return _super !== null && _super.apply(this, arguments) || this; } AggregateColumnDirective.moduleName = 'aggregateColumn'; return AggregateColumnDirective; }(ComplexBase)); export { AggregateColumnDirective }; var AggregateColumnsDirective = /** @class */ (function (_super) { __extends(AggregateColumnsDirective, _super); function AggregateColumnsDirective() { return _super !== null && _super.apply(this, arguments) || this; } AggregateColumnsDirective.propertyName = 'columns'; AggregateColumnsDirective.moduleName = 'aggregateColumns'; return AggregateColumnsDirective; }(ComplexBase)); export { AggregateColumnsDirective };