ryanwischkaemper / aurelia-nw Goto Github PK
View Code? Open in Web Editor NEWNW.js (nodewebkit) app with Aurelia
License: The Unlicense
NW.js (nodewebkit) app with Aurelia
License: The Unlicense
I am using you repo--> nw.js with aurelia .. I am able to require("nw.gui") as you did in window bar.js
. But I am not able to create new gui.Menu() .
Some code for reference
var gui = require('nw.gui');
export class App {
add_collection () {
console.log("add collection called");
}
attached() {
console.log("attached called",gui);
var menu = new gui.Menu();
menu.append(new gui.MenuItem({
label: 'Add Collection',
click: this.add_collection
}));
$("body").bind('contextmenu', function(ev) {
ev.preventDefault();
menu.popup(ev.pageX, ev.pageY);
return false;
});
}
}
Any one can help me on this????? Thanx in advance
Following readme
to run the project on platform different from win64 requires proper config of the nwBuilderConfig.platforms
setting.
This should not be the case. Default config should respect local installed nw.js
version or limit download to the one corresponding to local platform.
import {inject} from 'aurelia-framework';
var gui = require('nw.gui');
@Inject(gui)
export class App {
constructor(gui) {
this.gui = gui;
}
attached() {
console.log("gui----",this.gui); // here i get a value of gui
var menu = new this.gui.Menu(); //i get error when i write this line Error Line
}
}
npm WARN deprecated [email protected]: WARNING: This module has been renamed to nw-builder. Install using nw-builder instead, node-webkit-builder will no longer be updated.
It looks like nw-builder is targeted to current NW.js.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.