angular-bootstrap-md
Version:
Bootstrap 4 & Angular 15 UI KIT - 700+ components, MIT license, simple installation.
56 lines (55 loc) • 2.57 kB
TypeScript
import { OnInit, EventEmitter, ChangeDetectorRef, OnChanges, SimpleChanges, AfterViewInit, OnDestroy } from '@angular/core';
import { Observable, Subject } from 'rxjs';
import { MdbTableDirective } from '../directives/mdb-table.directive';
import * as i0 from "@angular/core";
export interface MdbPaginationIndex {
first: number;
last: number;
}
export declare class MdbTablePaginationComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
private cdRef;
tableEl: MdbTableDirective;
searchPagination: boolean;
searchDataSource: any;
ofKeyword: string;
dashKeyword: string;
paginationAlign: string;
hideDescription: boolean;
private _destroy$;
maxVisibleItems: number;
firstItemIndex: number;
lastItemIndex: number;
lastVisibleItemIndex: number;
activePageNumber: number;
allItemsLength: number;
nextShouldBeDisabled: boolean;
previousShouldBeDisabled: boolean;
searchText: string;
pagination: Subject<MdbPaginationIndex>;
nextPageClick: EventEmitter<MdbPaginationIndex>;
previousPageClick: EventEmitter<MdbPaginationIndex>;
firstPageClick: EventEmitter<MdbPaginationIndex>;
lastPageClick: EventEmitter<MdbPaginationIndex>;
constructor(cdRef: ChangeDetectorRef);
ngOnInit(): void;
ngAfterViewInit(): void;
ngOnChanges(changes: SimpleChanges): void;
setMaxVisibleItemsNumberTo(value: number): void;
searchTextObs(): Observable<any>;
disableNextButton(data: any): void;
calculateFirstItemIndex(): void;
calculateLastItemIndex(): void;
paginationChange(): Observable<any>;
calculateHowManyPagesShouldBe(): number;
previousPage(): void;
nextPage(): void;
firstPage(): void;
lastPage(): void;
nextPageObservable(): Observable<any>;
previousPageObservable(): Observable<any>;
checkIfNextShouldBeDisabled(): true;
checkIfPreviousShouldBeDisabled(): boolean;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<MdbTablePaginationComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MdbTablePaginationComponent, "mdb-table-pagination", never, { "tableEl": "tableEl"; "searchPagination": "searchPagination"; "searchDataSource": "searchDataSource"; "ofKeyword": "ofKeyword"; "dashKeyword": "dashKeyword"; "paginationAlign": "paginationAlign"; "hideDescription": "hideDescription"; }, { "nextPageClick": "nextPageClick"; "previousPageClick": "previousPageClick"; "firstPageClick": "firstPageClick"; "lastPageClick": "lastPageClick"; }, never, never, false, never>;
}