igniteui-react-grids
Version:
Ignite UI React grid components.
77 lines (76 loc) • 2.62 kB
JavaScript
import { IgrGridEditEventArgsDetail } from "./igr-grid-edit-event-args-detail";
import { GridEditEventArgs as GridEditEventArgs_internal } from "./GridEditEventArgs";
/**
* Represents event arguments related to grid editing.
* The event is cancelable
* It contains information about the row and the column, as well as the old and nwe value of the element/cell
*/
var IgrGridEditEventArgs = /** @class */ /*@__PURE__*/ (function () {
function IgrGridEditEventArgs() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgrGridEditEventArgs.prototype.createImplementation = function () {
return new GridEditEventArgs_internal();
};
Object.defineProperty(IgrGridEditEventArgs.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrGridEditEventArgs.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrGridEditEventArgs.prototype.onImplementationCreated = function () {
};
IgrGridEditEventArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrGridEditEventArgs.prototype, "detail", {
get: function () {
var r = this.i.b;
if (r == null) {
return null;
}
if (!r.externalObject) {
var e = new IgrGridEditEventArgsDetail();
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 IgrGridEditEventArgs;
}());
export { IgrGridEditEventArgs };