UNPKG

@doku-dev/doku-fragment

Version:

A new Angular UI library that moving away from Bootstrap and built from scratch.

33 lines (32 loc) 1.28 kB
import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { DokuPaginationContainer } from './pagination-container.component'; import * as i0 from "@angular/core"; export declare class DokuPaginationPerPage implements OnInit, OnDestroy, AfterViewInit { private cdr; private container?; readonly defaultItemsPerPage = 5; /** * Items per page options. * @default [5,10,15,20,25] */ options: number[]; /** * Label of the options. * @default 'items per page' */ optionLabel: string; protected itemsPerPage: FormControl<string | number>; private destroy$; constructor(cdr: ChangeDetectorRef, container?: DokuPaginationContainer | undefined); protected get normalizedOptions(): { label: string; value: number; }[]; ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; private convertValueToNumber; static ɵfac: i0.ɵɵFactoryDeclaration<DokuPaginationPerPage, never>; static ɵcmp: i0.ɵɵComponentDeclaration<DokuPaginationPerPage, "doku-pagination-per-page", ["dokuPaginationPerPage"], { "options": "options"; "optionLabel": "optionLabel"; }, {}, never, never, true>; }