air-lib
Version:
This is Air's angular component library
28 lines (27 loc) • 963 B
TypeScript
import { OnInit, EventEmitter, Type } from '@angular/core';
import { Router } from '@angular/router';
import { HttpService } from '../services/http.service';
import { NavigationMode } from './navigation-mode';
import { ITile } from '../interfaces/itile';
export declare class BaseTileComponent<T> implements OnInit, ITile<T> {
protected httpService: HttpService;
protected router: Router;
arguments: Array<any>;
linkClicked: EventEmitter<{}>;
ownData: T;
component: Type<any>;
canRemove: boolean;
hasLoading: boolean;
type?: string;
protected loadOnInit: boolean;
protected apiMethod: string;
protected link: string;
protected navigationMode: NavigationMode;
constructor(httpService: HttpService, router: Router);
ngOnInit(): void;
fillData(): any;
protected transformData(data: any): T;
onLinkClicked(): void;
loadData(): void;
getDataForState(): null;
}