UNPKG

igniteui-react-core

Version:
114 lines (113 loc) 3.46 kB
import { PageRequestedEventArgs as PageRequestedEventArgs_internal } from "./PageRequestedEventArgs"; import { ensureBool } from "./componentUtil"; /** * Information about the requested page. */ var IgrPageRequestedEventArgs = /** @class */ /*@__PURE__*/ (function () { function IgrPageRequestedEventArgs() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } IgrPageRequestedEventArgs.prototype.createImplementation = function () { return new PageRequestedEventArgs_internal(); }; Object.defineProperty(IgrPageRequestedEventArgs.prototype, "nativeElement", { get: function () { return this._implementation.nativeElement; }, enumerable: false, configurable: true }); Object.defineProperty(IgrPageRequestedEventArgs.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgrPageRequestedEventArgs.prototype.onImplementationCreated = function () { }; IgrPageRequestedEventArgs.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } }; Object.defineProperty(IgrPageRequestedEventArgs.prototype, "isSchemaRequest", { /** * The data source is requesting the schema for the data. */ get: function () { return this.i.a; }, set: function (v) { this.i.a = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrPageRequestedEventArgs.prototype, "requestId", { /** * The unique ID for the page request. */ get: function () { return this.i.e; }, set: function (v) { this.i.e = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrPageRequestedEventArgs.prototype, "dataSourceId", { /** * The Unique ID for the data source making the request. */ get: function () { return this.i.b; }, set: function (v) { this.i.b = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrPageRequestedEventArgs.prototype, "pageIndex", { /** * The page index being requested. */ get: function () { return this.i.c; }, set: function (v) { this.i.c = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrPageRequestedEventArgs.prototype, "pageSize", { /** * The page size being requested. */ get: function () { return this.i.d; }, set: function (v) { this.i.d = +v; }, enumerable: false, configurable: true }); return IgrPageRequestedEventArgs; }()); export { IgrPageRequestedEventArgs };