air-lib
Version:
This is Air's angular component library
25 lines (24 loc) • 1.08 kB
TypeScript
import { ApiCallInfo } from './../../entities/api-call-info';
import { OnInit } from '@angular/core';
import { HttpResponse } from '@angular/common/http';
import { Router } from '@angular/router';
import { HttpService } from '../../services/http.service';
export declare class BaseMasterComponent implements OnInit {
protected router: Router;
protected httpService: HttpService;
static CACHED_HEADER: string;
apiCall: ApiCallInfo;
detailsUrl: string;
hash: string;
data: any;
context: string;
constructor(router: Router, httpService: HttpService);
ngOnInit(): void;
protected setData(): void;
getPageNo(url: string): number;
getPageEntries(url: string): number;
protected initialize(response: any): void;
parseHttpHeader(data: HttpResponse<Object>, apiCall: ApiCallInfo): void;
protected openDetails(id: string, hash: string, i: number, apiCall: ApiCallInfo, total: number, itemsOnPage?: number): void;
setHash(hashFromHeader: string, currentPage: number, itemsOnPage: number): void;
}