igniteui-react-grids
Version:
Ignite UI React grid components.
56 lines (55 loc) • 1.52 kB
JavaScript
import { CancelableEventArgsDetail as CancelableEventArgsDetail_internal } from "./CancelableEventArgsDetail";
import { ensureBool } from "igniteui-react-core";
export class IgrCancelableEventArgsDetail {
createImplementation() {
return new CancelableEventArgsDetail_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();
}
}
/**
* Provides the ability to cancel the event.
*/
get cancel() {
return this.i.c;
}
set cancel(v) {
this.i.c = ensureBool(v);
}
findByName(name) {
if (this.findEphemera) {
if (name && name.indexOf("@@e:") == 0) {
return this.findEphemera(name);
}
}
return null;
}
setNativeElement(element) {
this.i.setNativeElement(element);
}
}