UNPKG

@covalent/core

Version:

Core Teradata UI Platform for layouts, icons, custom components and themes. This should be added as a dependency for any project that wants to use layouts, icons and themes for Angular Material.

34 lines (33 loc) 1.51 kB
import { EventEmitter } from '@angular/core'; import { NgModel } from '@angular/forms'; import * as i0 from "@angular/core"; export declare class TdFileSelectDirective { private model; private _multiple; /** * multiple?: boolean * Sets whether multiple files can be selected at once in host element, or just a single file. * Can also be 'multiple' native attribute. */ set multiple(multiple: boolean | string); /** * fileSelect?: function * Event emitted when a file or files are selected in host [HTMLInputElement]. * Emits a [FileList | File] object. * Alternative to not use [(ngModel)]. */ fileSelect: EventEmitter<FileList | File>; /** * Binds native 'multiple' attribute if [multiple] property is 'true'. */ get multipleBinding(): string | undefined; constructor(model: NgModel); /** * Listens to 'change' host event to get [HTMLInputElement] files. * Emits the 'fileSelect' event with a [FileList] or [File] depending if 'multiple' attr exists in host. * Uses [(ngModel)] if declared, instead of emitting 'fileSelect' event. */ onChange(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration<TdFileSelectDirective, [{ optional: true; host: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<TdFileSelectDirective, "[tdFileSelect]", never, { "multiple": { "alias": "multiple"; "required": false; }; }, { "fileSelect": "fileSelect"; }, never, never, false, never>; }