You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
718 B
20 lines
718 B
|
7 months ago
|
export type OnFileSelected = (file: File) => void;
|
||
|
|
export declare class FileSelectionUi {
|
||
|
|
private readonly fileBasedScanRegion;
|
||
|
|
private readonly fileScanInput;
|
||
|
|
private readonly fileSelectionButton;
|
||
|
|
private constructor();
|
||
|
|
hide(): void;
|
||
|
|
show(): void;
|
||
|
|
isShowing(): boolean;
|
||
|
|
resetValue(): void;
|
||
|
|
private createFileBasedScanRegion;
|
||
|
|
private fileBasedScanRegionDefaultBorder;
|
||
|
|
private fileBasedScanRegionActiveBorder;
|
||
|
|
private createDragAndDropMessage;
|
||
|
|
private setImageNameToButton;
|
||
|
|
private setInitialValueToButton;
|
||
|
|
private getFileScanInputId;
|
||
|
|
static create(parentElement: HTMLDivElement, showOnRender: boolean, onFileSelected: OnFileSelected): FileSelectionUi;
|
||
|
|
}
|