igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
77 lines (76 loc) • 1.83 kB
JavaScript
import { PageRequestedEventArgs as PageRequestedEventArgs_internal } from "./PageRequestedEventArgs";
import { ensureBool } from "./componentUtil";
/**
* Information about the requested page.
*/
export class IgxPageRequestedEventArgs {
constructor() {
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
createImplementation() {
return new PageRequestedEventArgs_internal();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
onImplementationCreated() {
}
_provideImplementation(i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
}
/**
* 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;
}
}