dynamic-display-shared
Version:
A library for dynamic view
27 lines (26 loc) • 1.18 kB
TypeScript
import { ElementRef, OnInit } from '@angular/core';
import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
import * as i0 from "@angular/core";
export declare class FileUploadComponent implements ControlValueAccessor, OnInit {
private host;
placeholder: string;
explanation: string;
existsFile: string;
control: FormControl;
onChange: Function;
private files;
filesNames: string[];
fileRequired: any;
fileInputControl: FormControl;
fileFormGroup: FormGroup;
readonly separatorKeysCodes: number[];
emitFiles(event: FileList): void;
constructor(host: ElementRef<HTMLInputElement>);
ngOnInit(): void;
writeValue(value: null): void;
registerOnChange(fn: Function): void;
registerOnTouched(fn: Function): void;
removeFile(fileName: string): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "app-file-upload", never, { "placeholder": "placeholder"; "explanation": "explanation"; "existsFile": "existsFile"; "control": "control"; }, {}, never, never, false>;
}