UNPKG

igniteui-webcomponents-grids

Version:

Ignite UI Web Components grid components.

53 lines (52 loc) 1.36 kB
import { PageChangedEventArgs as PageChangedEventArgs_internal } from "./PageChangedEventArgs"; export class IgcPageChangedEventArgs { createImplementation() { return new PageChangedEventArgs_internal(); } /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } constructor() { 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(); } } /** * Gets the index for the page that just changed. */ get page() { return this.i.page; } set page(v) { this.i.page = +v; } /** * Gets the data for the page that just changed. */ get data() { return this.i.data; } set data(v) { if (v && !Array.isArray(v) && typeof (v) == "string") { const re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.data = v; } }