UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

85 lines (84 loc) 3.24 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { __extends } from "tslib"; import { BaseToolbarDirective } from "./BaseToolbarDirective"; import { enumGetBox, markType } from "igniteui-react-core"; import { ExporterEventArgs } from "./ExporterEventArgs"; import { VoidEventArgs } from "igniteui-react"; import { GridToolbarExporterType_$type } from "./GridToolbarExporterType"; /** * @hidden */ var GridToolbarExporter = /** @class */ /*@__PURE__*/ (function (_super) { __extends(GridToolbarExporter, _super); function GridToolbarExporter() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.exportStarted = null; _this.exportEnded = null; return _this; } Object.defineProperty(GridToolbarExporter.prototype, "w", { get: function () { var ret_ = this.i.n("exportCSV"); return ret_; }, set: function (a) { var value_ = a; this.i.w("exportCSV", value_); }, enumerable: false, configurable: true }); Object.defineProperty(GridToolbarExporter.prototype, "x", { get: function () { var ret_ = this.i.n("exportExcel"); return ret_; }, set: function (a) { var value_ = a; this.i.w("exportExcel", value_); }, enumerable: false, configurable: true }); Object.defineProperty(GridToolbarExporter.prototype, "y", { get: function () { var ret_ = this.i.n("filename"); return ret_; }, set: function (a) { var value_ = a; this.i.w("filename", value_); }, enumerable: false, configurable: true }); GridToolbarExporter.prototype.exportStartedChanged = function () { var _this = this; if (this.exportStarted != null) { this.i.s("exportStarted", function (a) { return _this.exportStarted(_this, ExporterEventArgs.a(a)); }, false); } else { this.i.v("exportStarted"); } }; GridToolbarExporter.prototype.exportEndedChanged = function () { var _this = this; if (this.exportEnded != null) { this.i.s("exportEnded", function (a) { return _this.exportEnded(_this, VoidEventArgs.b(a)); }, false); } else { this.i.v("exportEnded"); } }; GridToolbarExporter.prototype.aa = function (a) { this.nativeElement.export(this.i.i(enumGetBox(GridToolbarExporterType_$type, a))); }; GridToolbarExporter.$t = markType(GridToolbarExporter, 'GridToolbarExporter', BaseToolbarDirective.$); return GridToolbarExporter; }(BaseToolbarDirective)); export { GridToolbarExporter };