define(["require", "exports", "@syncfusion/ej2-treegrid", "@syncfusion/ej2-base"], function (require, exports, ej2_treegrid_1, ej2_base_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ExcelExport = (function () {
function ExcelExport(gantt) {
this.parent = gantt;
ej2_treegrid_1.TreeGrid.Inject(ej2_treegrid_1.ExcelExport);
this.parent.treeGrid.allowExcelExport = this.parent.allowExcelExport;
this.bindEvents();
}
ExcelExport.prototype.getModuleName = function () {
return 'excelExport';
};
ExcelExport.prototype.destroy = function () {
};
ExcelExport.prototype.bindEvents = function () {
var _this = this;
this.parent.treeGrid.beforeExcelExport = function (args) {
_this.parent.trigger('beforeExcelExport', args);
if (!ej2_base_1.isNullOrUndefined(_this.parent.loadingIndicator) && _this.parent.loadingIndicator.indicatorType === 'Shimmer') {
_this.parent.showMaskRow();
}
else {
_this.parent.showSpinner();
}
};
this.parent.treeGrid.excelQueryCellInfo = function (args) {
_this.parent.trigger('excelQueryCellInfo', args);
};
this.parent.treeGrid.excelHeaderQueryCellInfo = function (args) {
_this.parent.trigger('excelHeaderQueryCellInfo', args);
};
this.parent.treeGrid.excelExportComplete = function (args) {
_this.parent.trigger('excelExportComplete', args);
if (!ej2_base_1.isNullOrUndefined(_this.parent.loadingIndicator) && _this.parent.loadingIndicator.indicatorType === 'Shimmer') {
_this.parent.hideMaskRow();
}
else {
_this.parent.hideSpinner();
}
};
};
return ExcelExport;
}());
exports.ExcelExport = ExcelExport;
});
|