igniteui-react-grids
Version:
Ignite UI React grid components.
52 lines (51 loc) • 1.62 kB
JavaScript
import { IgrColumn } from "./igr-column";
import { IgrBaseEventArgsDetail } from "./igr-base-event-args-detail";
import { ColumnMovingStartEventArgsDetail as ColumnMovingStartEventArgsDetail_internal } from "./ColumnMovingStartEventArgsDetail";
/**
* Represents event arguments related to the start of a column moving operation in a grid.
*/
export class IgrColumnMovingStartEventArgsDetail extends IgrBaseEventArgsDetail {
createImplementation() {
return new ColumnMovingStartEventArgsDetail_internal();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor() {
super();
}
/**
* Represents the column that is being moved.
* The `ColumnType` contains the information (the grid it belongs to, css data, settings, etc.) of the column in its properties
*/
get source() {
const r = this.i.g;
if (r == null) {
return null;
}
if (!r.externalObject) {
let e = IgrColumn._createFromInternal(r);
if (e) {
e._implementation = r;
}
r.externalObject = e;
}
return r.externalObject;
}
set source(v) {
v == null ? this.i.g = null : this.i.g = v.i;
}
findByName(name) {
var baseResult = super.findByName(name);
if (baseResult) {
return baseResult;
}
if (this.source && this.source.name && this.source.name == name) {
return this.source;
}
return null;
}
}