UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

75 lines (74 loc) 2.44 kB
import { PageChangedEventArgs as PageChangedEventArgs_internal } from "./PageChangedEventArgs"; var IgrPageChangedEventArgs = /** @class */ /*@__PURE__*/ (function () { function IgrPageChangedEventArgs() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } IgrPageChangedEventArgs.prototype.createImplementation = function () { return new PageChangedEventArgs_internal(); }; Object.defineProperty(IgrPageChangedEventArgs.prototype, "nativeElement", { get: function () { return this._implementation.nativeElement; }, enumerable: false, configurable: true }); Object.defineProperty(IgrPageChangedEventArgs.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgrPageChangedEventArgs.prototype.onImplementationCreated = function () { }; IgrPageChangedEventArgs.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } }; Object.defineProperty(IgrPageChangedEventArgs.prototype, "page", { /** * Gets the index for the page that just changed. */ get: function () { return this.i.page; }, set: function (v) { this.i.page = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrPageChangedEventArgs.prototype, "data", { /** * Gets the data for the page that just changed. */ get: function () { return this.i.data; }, set: function (v) { if (v && !Array.isArray(v) && typeof (v) == "string") { var re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.data = v; }, enumerable: false, configurable: true }); return IgrPageChangedEventArgs; }()); export { IgrPageChangedEventArgs };