UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

82 lines (81 loc) 2.75 kB
import { __extends } from "tslib"; import { IgrRowType } from "./igr-row-type"; import { IgrBaseEventArgsDetail } from "./igr-base-event-args-detail"; import { GridRowEventArgsDetail as GridRowEventArgsDetail_internal } from "./GridRowEventArgsDetail"; /** * Represents an event argument related to grid row interactions. */ var IgrGridRowEventArgsDetail = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrGridRowEventArgsDetail, _super); function IgrGridRowEventArgsDetail() { return _super.call(this) || this; } IgrGridRowEventArgsDetail.prototype.createImplementation = function () { return new GridRowEventArgsDetail_internal(); }; Object.defineProperty(IgrGridRowEventArgsDetail.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgrGridRowEventArgsDetail.prototype, "row", { /** * Represents the grid row that triggered the event. */ get: function () { var r = this.i.g; if (r == null) { return null; } if (!r.externalObject) { var e = new IgrRowType(); if (r.$type) { e._implementation = r; } else { if (e.i.setNativeElement) { e.i.setNativeElement(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(IgrGridRowEventArgsDetail.prototype, "event", { /** * Represents the original event that occurred * Examples of such events include: selecting, clicking, double clicking, etc. */ get: function () { return this.i.h; }, set: function (v) { this.i.h = v; }, enumerable: false, configurable: true }); IgrGridRowEventArgsDetail.prototype.findByName = function (name) { var baseResult = _super.prototype.findByName.call(this, name); if (baseResult) { return baseResult; } if (this.row && this.row.name && this.row.name == name) { return this.row; } return null; }; return IgrGridRowEventArgsDetail; }(IgrBaseEventArgsDetail)); export { IgrGridRowEventArgsDetail };