eXtern OS uses Nw.js as front-end to run Apps. Most of the documentation can be found on the official Nw.js documentation page.
There are important changes from the official Node.js API you need to know about.
“
multi_window" : true
See example Apps for more info
win = nw.Window.get();
win.onOpenFiles = function(files) {
/*Handle the files array here*/
}
See example Apps for more info
fileTypesApps = {
audio : [],
video : [],
image : [],
text : [],
web : [] }
See example Apps for more info
fileTypesApps.prefferedFileTypesApps = {
audio : [],
video : [],
image : [],
text : [],
web : [] }
See example Apps for more info
win = nw.Window.get();
var files = [] files.push(file);
var requiredApps = win.fileTypesApps.prefferedFileTypesApps;
win.openApp(requiredApps.web.id,files);
See example Apps for more info
In order to create eXtern compatible apps, you need to create an eXtern App project or open one using the DevKit.
DevKit will have almost all of the important UI elements defined in Beta 2. The UI uses stylized bootstrap theme, so as a rule of thumb, a bootstrap element, plugin etc will work well with eXtern. Check this page in the next couple of days for sample apps. However, here are a few important ones:
<!--a tag/link based button. An example of a large button using the "btn-lg" class -->
<a class="btn btn-alt btn-lg"> Hello </a><!-- Button tag based button -->
<button class="btn btn-alt m-r-5"> Hello </button>
See example Apps for more info