mirror of
https://github.com/The-Low-Code-Foundation/OpenNoodl.git
synced 2026-01-11 06:42:57 +01:00
feat(runtime): Add capture attribute on Open File Picker node (#57)
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#capture - https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture
This commit is contained in:
committed by
Richard Osborne
parent
226a460cf9
commit
a96e499856
@@ -43,6 +43,10 @@ const OpenFilePicker = {
|
|||||||
|
|
||||||
input.accept = this._internal.acceptedFileTypes;
|
input.accept = this._internal.acceptedFileTypes;
|
||||||
|
|
||||||
|
if (this._internal.capture) {
|
||||||
|
input.capture = this._internal.capture;
|
||||||
|
}
|
||||||
|
|
||||||
input.onchange = onChange;
|
input.onchange = onChange;
|
||||||
input.click();
|
input.click();
|
||||||
}
|
}
|
||||||
@@ -54,6 +58,14 @@ const OpenFilePicker = {
|
|||||||
set(value) {
|
set(value) {
|
||||||
this._internal.acceptedFileTypes = value;
|
this._internal.acceptedFileTypes = value;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
capture: {
|
||||||
|
group: 'General',
|
||||||
|
type: 'string',
|
||||||
|
displayName: 'Capture',
|
||||||
|
set(value) {
|
||||||
|
this._internal.capture = value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
outputs: {
|
outputs: {
|
||||||
|
|||||||
Reference in New Issue
Block a user