A file input that supports drag and drop.

Hierarchy

  • ContourableInterface<this> & LitElement<this>
    • ZetaFileUpload

Other

  • Returns ZetaFileUpload

accept?: string

A comma separated list of accepted file formats.

For more information see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#additional_attributes.

active: boolean = false

Used to trigger the 'active' state of the file input.

caption?: string

The caption text.

error: boolean = false

Use to show the 'error' state of the file input.

fileInput?: HTMLInputElement
headline: string = ...

The headline text.

multiple: boolean = true

Allows multiple files to be added to the input. Also affects drag and drop.

name?: string

The name given to the file input.

rounded: boolean
styles: CSSResultGroup[] = ...

rendering

  • Invoked on each update to perform rendering tasks. This method may return any value renderable by lit-html's ChildPart - typically a TemplateResult. Setting properties inside this method will not trigger the element to update.

    Returns TemplateResult<1>