forked from symfony/ux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontroller.d.ts
More file actions
33 lines (31 loc) · 958 Bytes
/
Copy pathcontroller.d.ts
File metadata and controls
33 lines (31 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { Controller } from '@hotwired/stimulus';
declare class export_default extends Controller {
readonly inputTarget: HTMLInputElement;
readonly placeholderTarget: HTMLDivElement;
readonly previewTargets: HTMLDivElement[];
readonly previewContainerTarget: HTMLDivElement;
static targets: string[];
files: Map<string, File>;
initialize(): void;
connect(): void;
disconnect(): void;
clear(event?: {
target?: HTMLElement;
params?: {
filename?: string;
};
}): void;
onInputChange(): void;
private renderPreview;
private clearPreviewContainer;
private buildPreview;
_populateImagePreview(element: HTMLElement, file: File): void;
onDragEnter(): void;
onDragLeave(event: any): void;
private updateFileInput;
private addFiles;
private isImage;
private get isMultiple();
private dispatchEvent;
}
export { export_default as default };