Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

2015-12-18から1日間の記事一覧

クロスプラットフォームなアプリ作成ツール「Electron」で遊ぶ その6:右クリックメニューを設定する

今回の記事では右クリックメニューを設定します。 実際のところ 以下のrmenu.jsを新規に作成しindex.htmlで呼び出します。 rmenu.js const remote = require('electron').remote; const Menu = remote.Menu; const MenuItem = remote.MenuItem; var template…