@webilix/ngx-helper-m3
Version:
Helper library for Angular and Material 3
22 lines (21 loc) • 899 B
TypeScript
import { AfterViewInit } from '@angular/core';
import { HttpClient, HttpStatusCode } from '@angular/common/http';
import { INgxHelperHttpUploadConfig } from '../ngx-helper-http.interface';
import * as i0 from "@angular/core";
export declare class UploadComponent<R, E> implements AfterViewInit {
private readonly httpClient;
private host;
private className;
bottom: string;
id: string;
file: File;
url: string;
config: Partial<INgxHelperHttpUploadConfig>;
close: (type: 'RESPONSE' | 'ERROR', result: any, status: HttpStatusCode) => void;
progress: number;
constructor(httpClient: HttpClient);
ngAfterViewInit(): void;
upload(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<UploadComponent<any, any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<UploadComponent<any, any>, "ng-component", never, {}, {}, never, never, true, never>;
}