igniteui-webcomponents-grids
Version:
Ignite UI Web Components grid components.
106 lines (105 loc) • 2.85 kB
JavaScript
import { IgcDataGridColumnComponent } from "./igc-data-grid-column-component";
import { IgcColumnWidth } from "./igc-column-width";
import { GridColumnWidthChangedEventArgs as GridColumnWidthChangedEventArgs_internal } from "./GridColumnWidthChangedEventArgs";
/**
* Event arguments for the GridColumnWidthChanged event.
*/
export class IgcGridColumnWidthChangedEventArgs {
createImplementation() {
return new GridColumnWidthChangedEventArgs_internal();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
onImplementationCreated() {
}
constructor() {
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();
}
}
/**
* The column whose Width has changed
*/
get column() {
const r = this.i.c;
if (r == null) {
return null;
}
if (!r.externalObject) {
let e = IgcDataGridColumnComponent._createFromInternal(r);
if (e) {
e._implementation = r;
}
r.externalObject = e;
}
return r.externalObject;
}
set column(v) {
v == null ? this.i.c = null : this.i.c = v.i;
}
/**
* The old column width.
*/
get oldWidth() {
const r = this.i.b;
if (r == null) {
return null;
}
if (!r.externalObject) {
let e = new IgcColumnWidth();
if (r.$type) {
e._implementation = r;
}
else {
if (e.i.setNativeElement) {
e.i.setNativeElement(r);
}
}
r.externalObject = e;
}
return r.externalObject;
}
set oldWidth(v) {
v == null ? this.i.b = null : this.i.b = v.i;
}
/**
* The new column width.
*/
get newWidth() {
const r = this.i.a;
if (r == null) {
return null;
}
if (!r.externalObject) {
let e = new IgcColumnWidth();
if (r.$type) {
e._implementation = r;
}
else {
if (e.i.setNativeElement) {
e.i.setNativeElement(r);
}
}
r.externalObject = e;
}
return r.externalObject;
}
set newWidth(v) {
v == null ? this.i.a = null : this.i.a = v.i;
}
}