igniteui-react-grids
Version:
Ignite UI React grid components.
65 lines (64 loc) • 2.12 kB
JavaScript
import { IgrPinColumnCancellableEventArgsDetail } from "./igr-pin-column-cancellable-event-args-detail";
import { PinColumnCancellableEventArgs as PinColumnCancellableEventArgs_internal } from "./PinColumnCancellableEventArgs";
/**
* The event arguments before a column's pin state is changed.
* `insertAtIndex`specifies at which index in the pinned/unpinned area the column is inserted.
* Can be changed in the `columnPin` event.
* `isPinned` returns the actual pin state of the column. When pinning/unpinning is successful,
* the value of `isPinned` will change accordingly when read in the "-ing" and "-ed" event.
*/
export class IgrPinColumnCancellableEventArgs {
createImplementation() {
return new PinColumnCancellableEventArgs_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 IgrPinColumnCancellableEventArgsDetail();
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;
}
}