UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

132 lines (131 loc) 4.35 kB
import { IgrDataGridColumn } from "./igr-data-grid-column"; import { IgrColumnWidth } from "./igr-column-width"; import { GridColumnWidthChangedEventArgs as GridColumnWidthChangedEventArgs_internal } from "./GridColumnWidthChangedEventArgs"; /** * Event arguments for the GridColumnWidthChanged event. */ var IgrGridColumnWidthChangedEventArgs = /** @class */ /*@__PURE__*/ (function () { function IgrGridColumnWidthChangedEventArgs() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } IgrGridColumnWidthChangedEventArgs.prototype.createImplementation = function () { return new GridColumnWidthChangedEventArgs_internal(); }; Object.defineProperty(IgrGridColumnWidthChangedEventArgs.prototype, "nativeElement", { get: function () { return this._implementation.nativeElement; }, enumerable: false, configurable: true }); Object.defineProperty(IgrGridColumnWidthChangedEventArgs.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgrGridColumnWidthChangedEventArgs.prototype.onImplementationCreated = function () { }; IgrGridColumnWidthChangedEventArgs.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } }; Object.defineProperty(IgrGridColumnWidthChangedEventArgs.prototype, "column", { /** * The column whose Width has changed */ get: function () { var r = this.i.c; if (r == null) { return null; } if (!r.externalObject) { var e = IgrDataGridColumn._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; }, set: function (v) { v == null ? this.i.c = null : this.i.c = v.i; }, enumerable: false, configurable: true }); Object.defineProperty(IgrGridColumnWidthChangedEventArgs.prototype, "oldWidth", { /** * The old column width. */ get: function () { var r = this.i.b; if (r == null) { return null; } if (!r.externalObject) { var e = new IgrColumnWidth(); if (r.$type) { e._implementation = r; } else { if (e.i.setNativeElement) { e.i.setNativeElement(r); } } r.externalObject = e; } return r.externalObject; }, set: function (v) { v == null ? this.i.b = null : this.i.b = v.i; }, enumerable: false, configurable: true }); Object.defineProperty(IgrGridColumnWidthChangedEventArgs.prototype, "newWidth", { /** * The new column width. */ get: function () { var r = this.i.a; if (r == null) { return null; } if (!r.externalObject) { var e = new IgrColumnWidth(); if (r.$type) { e._implementation = r; } else { if (e.i.setNativeElement) { e.i.setNativeElement(r); } } r.externalObject = e; } return r.externalObject; }, set: function (v) { v == null ? this.i.a = null : this.i.a = v.i; }, enumerable: false, configurable: true }); return IgrGridColumnWidthChangedEventArgs; }()); export { IgrGridColumnWidthChangedEventArgs };