overte-JulianGro/examples/example/fileBrowserExample.js
Chris Collins 602275a0f7 First pass moving scripts into an example folder.
This is just a quick first pass to move some of the scripts into an
examples folder. There are also a couple of obvious deletions.
2015-01-06 11:16:40 -08:00

13 lines
408 B
JavaScript

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);
}