node-webkit.jsx
v0.1.1
Published
node-webkit API wrapper for JSX
Downloads
4
Readme
node-webkit.jsx
Synopsis
node-webkit API wrapper for JSX
Code Example
This module implements APIs described at node-webkit Native UI API Manual.
import "node-webkit.jsx";
class _Main {
static function main(argv : string[]) : void
{
var menu = new nw.gui.Menu();
// Add some items
menu.append(new nw.gui.MenuItem({ label: 'Item A' }));
menu.append(new nw.gui.MenuItem({ label: 'Item B' }));
menu.append(new nw.gui.MenuItem({ type: 'separator' }));
menu.append(new nw.gui.MenuItem({ label: 'Item C' }));
// Remove one item
menu.removeAt(1);
// Popup as context menu
menu.popup(10, 10);
}
}
Installation
$ npm install node-webkit.jsx --save-dev
API Reference
See node-webkit Native UI API Manual.
Development
Repository
- Repository: git://github.com/shibukawa/node-webkit.jsx.git
- Issues: https://github.com/shibukawa/node-webkit.jsx/issues
Run Test
$ grunt test
Build Sample
$ grunt build
Generate API reference
$ grunt doc
Author
- shibukawa / [email protected]
License
BSD-2-Clause
Complete license is written in LICENSE.md
.