ngx-dropzone-next
Version:
A highly configurable dropzone component for Angular.
21 lines (20 loc) • 1.29 kB
TypeScript
import * as i0 from "@angular/core";
export declare class NgxDropzonePreviewComponent {
readonly hostStyles: import("@angular/platform-browser").SafeStyle;
/** The file to preview. */
readonly file: import("@angular/core").InputSignal<File | undefined>;
/** Allow the user to remove files. */
readonly removable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
/** Emitted when the element should be removed. */
readonly removed: import("@angular/core").OutputEmitterRef<File>;
keyEvent(event: KeyboardEvent): void;
/** Make the preview item focusable using the tab key. */
tabIndex: number;
/** Remove method to be used from the template. */
_remove(event: MouseEvent): void;
/** Remove the preview item (use from component code). */
remove(): void;
protected readFile(): Promise<string | ArrayBuffer>;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxDropzonePreviewComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxDropzonePreviewComponent, "ngx-dropzone-preview", never, { "file": { "alias": "file"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; }, { "removed": "removed"; }, never, ["ngx-dropzone-label"], true, never>;
}