igniteui-react-grids
Version:
Ignite UI React grid components.
76 lines (75 loc) • 2.6 kB
JavaScript
import { IgrRowSelectionEventArgsDetail } from "./igr-row-selection-event-args-detail";
import { RowSelectionEventArgs as RowSelectionEventArgs_internal } from "./RowSelectionEventArgs";
/**
* The event arguments when the selection state of a row is being changed
* The event is cancelable
*/
var IgrRowSelectionEventArgs = /** @class */ /*@__PURE__*/ (function () {
function IgrRowSelectionEventArgs() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgrRowSelectionEventArgs.prototype.createImplementation = function () {
return new RowSelectionEventArgs_internal();
};
Object.defineProperty(IgrRowSelectionEventArgs.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRowSelectionEventArgs.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrRowSelectionEventArgs.prototype.onImplementationCreated = function () {
};
IgrRowSelectionEventArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrRowSelectionEventArgs.prototype, "detail", {
get: function () {
var r = this.i.b;
if (r == null) {
return null;
}
if (!r.externalObject) {
var e = new IgrRowSelectionEventArgsDetail();
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 IgrRowSelectionEventArgs;
}());
export { IgrRowSelectionEventArgs };