UNPKG

igniteui-react-core

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