UNPKG

@magnit-ce/fileimage-input

Version:

A custom html input element that accepts a file or an image and provides a simple preview for common image value use-cases.

24 lines (22 loc) 808 B
declare class FileImageInputElement extends HTMLElement { #private; componentParts: Map<string, HTMLElement>; get files(): FileList | null; constructor(); connectedCallback(): void; static observedAttributes: string[]; attributeChangedCallback(attributeName: string, _oldValue: string, newValue: string): void; updatePreview(file: File | null): void; static formAssociated: boolean; get value(): File | null; set value(val: File | null); get validity(): ValidityState; get validationMessage(): string; setCustomValidity(value: string): void; formDisabledCallback(disabled: boolean): void; formResetCallback(): void; checkValidity(): boolean; reportValidity(): boolean; updateFormStatus(): void; } export { FileImageInputElement };