Properties
Private Readonly input
input: HTMLInputElement
Private Readonly link
link: HTMLAnchorElement
Methods
loadBinaryFile
- loadBinaryFile(func: (result: null | string | ArrayBuffer, fileName: string) => void): void
-
Parameters
-
func: (result: null | string | ArrayBuffer, fileName: string) => void
-
- (result: null | string | ArrayBuffer, fileName: string): void
-
Parameters
-
result: null | string | ArrayBuffer
-
fileName: string
Returns void
Returns void
loadFile
- loadFile(func: (result: string, file: File) => void, encoding?: string): void
-
Parameters
-
func: (result: string, file: File) => void
-
- (result: string, file: File): void
-
Parameters
-
result: string
-
file: File
Returns void
-
Optional encoding: string
Returns void
loadFiles
- loadFiles(func: (files: null | FileList) => void): void
-
Parameters
-
func: (files: null | FileList) => void
-
- (files: null | FileList): void
Returns void
loadImage
- loadImage(func: (result: HTMLImageElement, fileName: File) => void): void
-
Parameters
-
func: (result: HTMLImageElement, fileName: File) => void
-
- (result: HTMLImageElement, fileName: File): void
-
Parameters
-
result: HTMLImageElement
-
fileName: File
Returns void
Returns void
saveFile
- saveFile(name: string, text: string, type?: FileTypes): void
-
Parameters
-
name: string
-
text: string
-
Returns void
saveImage
- saveImage(name: string, image: string | HTMLImageElement): void
-
Parameters
-
name: string
-
image: string | HTMLImageElement
Returns void
private input used for opening system window for upload files