virtual class domkit::FilePicker

sys::Obj
  dom::Elem
    domkit::FilePicker

@Js

Source

FilePicker allows selection of files.

See also: docDomkit

accept

Str? accept

Source

Indicate the types of files that the server accepts. The value must be a comma-separated list of unique content type specifiers:

  • A file extension starting with a .: (e.g. .jpg, .png, .doc)
  • A valid MIME type with no extensions
  • audio/* representing sound files
  • video/* representing video files
  • image/* representing image files
files

List<DomFile> files()

Source

Get the list of currently selected files.

make

new make()

Source

multi

Bool multi

Source

Does this picker allow selecting multiple files?

onSelect

Void onSelect(Func<Void,FilePicker> f)

Source

Callback when a file has been selected by this picker.

open

Void open()

Source

Programmtically open the client file chooser interface.