Properties:
Name | Type | Description |
---|---|---|
accept |
Array.<string> | (default: |
directory |
bool | (default: |
multiple |
bool | (default: |
Example
Button {
text: "Select Files"
onClick: () =>
{
fsel.open(files =>
{
console.log(files);
});
}
FileSelector {
id: fsel
accept: ["audio/*", "video/*"]
multiple: true
}
}
Extends
Methods
-
Opens the file dialog.
Name Type Default Description callback
function null optional An optional callback function accepting the selected HTML5 File items.