igniteui-react-grids
Version:
Ignite UI React grid components.
41 lines (40 loc) • 1.26 kB
JavaScript
import { IgrSummaryOperand } from "./igr-summary-operand";
import { IgcTimeSummaryOperand } from "./../../grids/combined";
import { TimeSummaryOperand as TimeSummaryOperand_internal } from "./TimeSummaryOperand";
export class IgrTimeSummaryOperand extends IgrSummaryOperand {
createImplementation() {
let impl = new TimeSummaryOperand_internal();
if (impl.setNativeElement) {
impl.setNativeElement(new IgcTimeSummaryOperand());
}
return impl;
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor() {
super();
}
latestTime(data) {
this.i.j(data);
}
earliestTime(data) {
this.i.i(data);
}
operate(data, allData, fieldName, groupRecord) {
let iv = this.i.h(data, allData, fieldName, (groupRecord == null ? null : groupRecord.i));
let ret = [];
for (let i = 0; i < iv.length; i++) {
let impl = iv[i];
if (!impl.externalObject) {
let e = impl.nativeElement;
impl.externalObject = e;
}
ret.push(impl.externalObject);
}
return ret;
}
}