UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

82 lines (81 loc) 2.85 kB
import { __extends } from "tslib"; import { IgrBaseEventArgsDetail } from "./igr-base-event-args-detail"; import { RowToggleEventArgsDetail as RowToggleEventArgsDetail_internal } from "./RowToggleEventArgsDetail"; import { ensureBool } from "igniteui-react-core"; /** * Represents event arguments related to the row's expansion state being changed in a grid */ var IgrRowToggleEventArgsDetail = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrRowToggleEventArgsDetail, _super); function IgrRowToggleEventArgsDetail() { return _super.call(this) || this; } IgrRowToggleEventArgsDetail.prototype.createImplementation = function () { return new RowToggleEventArgsDetail_internal(); }; Object.defineProperty(IgrRowToggleEventArgsDetail.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgrRowToggleEventArgsDetail.prototype, "rowID", { /** * Represents the ID of the row that emitted the event (which state is changed) * @deprecated Use the `rowKey` property instead. */ get: function () { return this.i.i; }, set: function (v) { this.i.i = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrRowToggleEventArgsDetail.prototype, "rowKey", { get: function () { return this.i.j; }, set: function (v) { this.i.j = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrRowToggleEventArgsDetail.prototype, "expanded", { /** * Returns the state of the row after the operation has ended * Indicating whether the row is being expanded (true) or collapsed (false) */ get: function () { return this.i.h; }, set: function (v) { this.i.h = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrRowToggleEventArgsDetail.prototype, "cancel", { /** * The event is cancelable * `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.g; }, set: function (v) { this.i.g = ensureBool(v); }, enumerable: false, configurable: true }); return IgrRowToggleEventArgsDetail; }(IgrBaseEventArgsDetail)); export { IgrRowToggleEventArgsDetail };