UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

107 lines (106 loc) 4.02 kB
import { __extends } from "tslib"; import { IgrColumn } from "./igr-column"; import { IgrBaseEventArgsDetail } from "./igr-base-event-args-detail"; import { ColumnMovingEndEventArgsDetail as ColumnMovingEndEventArgsDetail_internal } from "./ColumnMovingEndEventArgsDetail"; import { ensureBool } from "igniteui-react-core"; /** * Represents event arguments related to the end of a column moving operation in a grid */ var IgrColumnMovingEndEventArgsDetail = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrColumnMovingEndEventArgsDetail, _super); function IgrColumnMovingEndEventArgsDetail() { return _super.call(this) || this; } IgrColumnMovingEndEventArgsDetail.prototype.createImplementation = function () { return new ColumnMovingEndEventArgsDetail_internal(); }; Object.defineProperty(IgrColumnMovingEndEventArgsDetail.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgrColumnMovingEndEventArgsDetail.prototype, "source", { /** * The source of the event 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: function () { var r = this.i.g; if (r == null) { return null; } if (!r.externalObject) { var e = IgrColumn._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; }, set: function (v) { v == null ? this.i.g = null : this.i.g = v.i; }, enumerable: false, configurable: true }); Object.defineProperty(IgrColumnMovingEndEventArgsDetail.prototype, "target", { /** * The target of the event represents the column, the source is being moved to. * The `ColumnType` contains the information (the grid it belongs to, css data, settings, etc.) of the column in its properties */ get: function () { var r = this.i.h; if (r == null) { return null; } if (!r.externalObject) { var e = IgrColumn._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; }, set: function (v) { v == null ? this.i.h = null : this.i.h = v.i; }, enumerable: false, configurable: true }); Object.defineProperty(IgrColumnMovingEndEventArgsDetail.prototype, "cancel", { /** * `cancel` returns whether the event has been intercepted and stopped * If the value becomes "true", it returns/exits from the method, instantiating the interface */ get: function () { return this.i.i; }, set: function (v) { this.i.i = ensureBool(v); }, enumerable: false, configurable: true }); IgrColumnMovingEndEventArgsDetail.prototype.findByName = function (name) { var baseResult = _super.prototype.findByName.call(this, name); if (baseResult) { return baseResult; } if (this.source && this.source.name && this.source.name == name) { return this.source; } if (this.target && this.target.name && this.target.name == name) { return this.target; } return null; }; return IgrColumnMovingEndEventArgsDetail; }(IgrBaseEventArgsDetail)); export { IgrColumnMovingEndEventArgsDetail };