UNPKG

@anglr/grid

Version:
47 lines 1.96 kB
import { ChangeDetectionStrategy, Component } from '@angular/core'; import { PagingAbstractComponent } from '../pagingAbstract.component'; import { DEFAULT_OPTIONS } from '../../../misc/tokens'; import * as i0 from "@angular/core"; /** * Default options for paging */ const defaultOptions = { initialItemsPerPage: NaN, initialPage: 1, cssClasses: {}, }; /** * Component used for no paging */ export class NoPagingComponent extends PagingAbstractComponent { constructor() { super(...arguments); //######################### public properties - implementation of NoPaging ######################### /** * @inheritdoc */ this.firstItemIndex = 0; } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NoPagingComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0", type: NoPagingComponent, isStandalone: true, selector: "ng-no-paging", providers: [ { provide: DEFAULT_OPTIONS, useValue: defaultOptions, }, ], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NoPagingComponent, decorators: [{ type: Component, args: [{ selector: 'ng-no-paging', template: '', providers: [ { provide: DEFAULT_OPTIONS, useValue: defaultOptions, }, ], changeDetection: ChangeDetectionStrategy.OnPush }] }] }); //# sourceMappingURL=noPaging.component.js.map