igniteui-react-grids
Version:
Ignite UI React grid components.
62 lines (61 loc) • 1.77 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
*/
export class IgrRowSelectionEventArgs {
createImplementation() {
return new RowSelectionEventArgs_internal();
}
get nativeElement() {
return this._implementation.nativeElement;
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
onImplementationCreated() {
}
constructor() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
_provideImplementation(i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
get detail() {
const r = this.i.b;
if (r == null) {
return null;
}
if (!r.externalObject) {
let 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 detail(v) {
v == null ? this.i.b = null : this.i.b = v.i;
}
}