mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 02:42:35 +02:00
Add fileBrowserExample.js
This commit is contained in:
parent
5a5e628536
commit
eccedda284
1 changed files with 13 additions and 0 deletions
13
examples/fileBrowserExample.js
Normal file
13
examples/fileBrowserExample.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
var file = Window.browse("File Browser Example", "/");
|
||||
if (file === null) {
|
||||
Window.alert("No file was selected");
|
||||
} else {
|
||||
Window.alert("Selected file: " + file);
|
||||
}
|
||||
|
||||
file = Window.browse("Relative Directory Example", "./images", "PNG or JPG files(*.png *.jpg);;SVG files (*.svg)");
|
||||
if (file === null) {
|
||||
Window.alert("No file was selected");
|
||||
} else {
|
||||
Window.alert("Selected file: " + file);
|
||||
}
|
Loading…
Reference in a new issue