Eric Tuvesson
2024-07-19 15:03:03 +02:00
committed by GitHub
parent 46e2efa576
commit aea80c6586

View File

@@ -43,6 +43,10 @@ const OpenFilePicker = {
input.accept = this._internal.acceptedFileTypes;
if (this._internal.capture) {
input.capture = this._internal.capture;
}
input.onchange = onChange;
input.click();
}
@@ -54,6 +58,14 @@ const OpenFilePicker = {
set(value) {
this._internal.acceptedFileTypes = value;
}
},
capture: {
group: 'General',
type: 'string',
displayName: 'Capture',
set(value) {
this._internal.capture = value;
}
}
},
outputs: {