UNPKG

@spartacus/storefront

Version:

Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.

29 lines (28 loc) 1.19 kB
import { ElementRef, EventEmitter } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import * as i0 from "@angular/core"; /** * Component that adds a file upload control. */ export declare class FileUploadComponent implements ControlValueAccessor { /** * Allowed file types. It's setting attribute used for OS window for choosing files. */ accept?: string | string[]; /** * Allows selecting multiple files. */ multiple?: boolean; update: EventEmitter<FileList>; protected fileInput: ElementRef<HTMLInputElement>; selectFile($event: Event): void; get selectedFiles(): File[] | undefined; protected onChangeCallback: Function; protected onTouchedCallback: Function; registerOnChange(callback: Function): void; registerOnTouched(callback: Function): void; setDisabledState(disabled: boolean): void; writeValue(value: any): void; static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "cx-file-upload", never, { "accept": "accept"; "multiple": "multiple"; }, { "update": "update"; }, never, ["*"]>; }