igniteui-react-grids
Version:
Ignite UI React grid components.
72 lines (71 loc) • 2.62 kB
JavaScript
import { IgrToggleViewCancelableEventArgsDetail } from "./igr-toggle-view-cancelable-event-args-detail";
import { ToggleViewCancelableEventArgs as ToggleViewCancelableEventArgs_internal } from "./ToggleViewCancelableEventArgs";
var IgrToggleViewCancelableEventArgs = /** @class */ /*@__PURE__*/ (function () {
function IgrToggleViewCancelableEventArgs() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgrToggleViewCancelableEventArgs.prototype.createImplementation = function () {
return new ToggleViewCancelableEventArgs_internal();
};
Object.defineProperty(IgrToggleViewCancelableEventArgs.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrToggleViewCancelableEventArgs.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrToggleViewCancelableEventArgs.prototype.onImplementationCreated = function () {
};
IgrToggleViewCancelableEventArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrToggleViewCancelableEventArgs.prototype, "detail", {
get: function () {
var r = this.i.b;
if (r == null) {
return null;
}
if (!r.externalObject) {
var e = new IgrToggleViewCancelableEventArgsDetail();
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 IgrToggleViewCancelableEventArgs;
}());
export { IgrToggleViewCancelableEventArgs };