igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
103 lines (102 loc) • 3.2 kB
JavaScript
import { PageRequestedEventArgs as PageRequestedEventArgs_internal } from "./PageRequestedEventArgs";
import { ensureBool } from "./componentUtil";
/**
* Information about the requested page.
*/
var IgxPageRequestedEventArgs = /** @class */ /*@__PURE__*/ (function () {
function IgxPageRequestedEventArgs() {
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgxPageRequestedEventArgs.prototype.createImplementation = function () {
return new PageRequestedEventArgs_internal();
};
Object.defineProperty(IgxPageRequestedEventArgs.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgxPageRequestedEventArgs.prototype.onImplementationCreated = function () {
};
IgxPageRequestedEventArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
};
Object.defineProperty(IgxPageRequestedEventArgs.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(IgxPageRequestedEventArgs.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(IgxPageRequestedEventArgs.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(IgxPageRequestedEventArgs.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(IgxPageRequestedEventArgs.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 IgxPageRequestedEventArgs;
}());
export { IgxPageRequestedEventArgs };