18.4.0 • Published 12 months ago
electron-windows v18.4.0
electron-windows
Manage multiple windows of Electron gracefully and provides powerful features.
Contributors
xudafeng | sriting | ColaDaddyz | snapre | zlyi | moshangqi |
---|
This project follows the git-contributor spec, auto updated at Tue Dec 27 2022 13:02:58 GMT+0800
.
Installment
$ npm i electron-windows --save
Demo
APIs
init
const WindowManager = require('electron-windows');
const windowManager = new WindowManager();
create
const { app } = require('electron');
const winRef = windowManager.create({
name: 'window1',
loadingView: {
url: '',
},
browserWindow: {
width: 800,
height: 600,
titleBarStyle: 'hidden',
title: 'demo',
show: false,
webPreferences: {
nodeIntegration: app.isDev,
webSecurity: true,
webviewTag: true,
},
},
openDevTools: true,
storageKey: 'storage-filename', // optional. The name of file. Support storage of window state
storagePath: app.getPath('userData'), // optional. The path of file, only used when storageKey is not empty
});
TODO
- support storage of window configuration
- clone pointed window
License
The MIT License (MIT)
18.4.0
12 months ago
18.3.0
1 year ago
18.2.0
1 year ago
18.1.0
1 year ago
18.0.3
2 years ago
18.0.2
2 years ago
18.0.1
2 years ago
18.0.0
2 years ago
17.0.3
2 years ago
17.0.2
2 years ago
17.0.1
2 years ago
17.0.0
2 years ago
13.0.2
2 years ago
13.0.1
2 years ago
13.0.0
2 years ago
0.4.0
3 years ago
0.3.0
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.1.12
3 years ago
0.1.10
3 years ago
0.1.11
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.3
3 years ago
0.1.6
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago