UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

77 lines (76 loc) 2.93 kB
import { IgrColumnVisibilityChangingEventArgsDetail } from "./igr-column-visibility-changing-event-args-detail"; import { ColumnVisibilityChangingEventArgs as ColumnVisibilityChangingEventArgs_internal } from "./ColumnVisibilityChangingEventArgs"; /** * The event arguments when a column's visibility is changed. * The event is cancelable * It contains information about the column and the it's visibility after the operation (will be `true` when hiding and `false` when showing) */ var IgrColumnVisibilityChangingEventArgs = /** @class */ /*@__PURE__*/ (function () { function IgrColumnVisibilityChangingEventArgs() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } IgrColumnVisibilityChangingEventArgs.prototype.createImplementation = function () { return new ColumnVisibilityChangingEventArgs_internal(); }; Object.defineProperty(IgrColumnVisibilityChangingEventArgs.prototype, "nativeElement", { get: function () { return this._implementation.nativeElement; }, enumerable: false, configurable: true }); Object.defineProperty(IgrColumnVisibilityChangingEventArgs.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgrColumnVisibilityChangingEventArgs.prototype.onImplementationCreated = function () { }; IgrColumnVisibilityChangingEventArgs.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } }; Object.defineProperty(IgrColumnVisibilityChangingEventArgs.prototype, "detail", { get: function () { var r = this.i.b; if (r == null) { return null; } if (!r.externalObject) { var e = new IgrColumnVisibilityChangingEventArgsDetail(); 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 }); return IgrColumnVisibilityChangingEventArgs; }()); export { IgrColumnVisibilityChangingEventArgs };