| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
508 バイト追加 、 2021年9月25日 (土) 08:48
===Webページをロード===
----
*loadURLとすることで、外部ページをロードできる
<pre>
*[https://service.typea.info/blogwiki Webページ]をElectronアプリ化
[[File:electron_web_app.png|500px]]
===モーダルダイアログ===
<pre>
 
function createWindow() {
let win = new BrowserWindow({
width: 800,
height: 600,
webPreference: {
nodeIntegration: true
}
});
// win.loadURL('https://service.typea.info/blogwiki');
win.loadFile('index.html');
 
let child = new BrowserWindow({
width: 400,
height: 200,
parent: win,
frame: false,
modal: true
});
child.loadFile('dialog.html');
}
</pre>

案内メニュー