@syncfusion/ej2-react-treegrid
Version:
Essential JS 2 TreeGrid Component for React
53 lines (52 loc) • 2.1 kB
JavaScript
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';
/**
* `AggregateDirective` represent a aggregate row of the react TreeGrid.
* It must be contained in a TreeGrid component(`TreeGridComponent`).
* ```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 AggregateDirective = /** @class */ (function (_super) {
__extends(AggregateDirective, _super);
function AggregateDirective() {
return _super !== null && _super.apply(this, arguments) || this;
}
AggregateDirective.moduleName = 'aggregate';
return AggregateDirective;
}(ComplexBase));
export { AggregateDirective };
var AggregatesDirective = /** @class */ (function (_super) {
__extends(AggregatesDirective, _super);
function AggregatesDirective() {
return _super !== null && _super.apply(this, arguments) || this;
}
AggregatesDirective.propertyName = 'aggregates';
AggregatesDirective.moduleName = 'aggregates';
return AggregatesDirective;
}(ComplexBase));
export { AggregatesDirective };