All Projects → electron-modules → electron-windows

electron-modules / electron-windows

Licence: other
Manage multiple windows of Electron gracefully and provides powerful features.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
shell
77523 projects

electron-windows

NPM version build status Test coverage node version npm download

Manage multiple windows of Electron gracefully and provides powerful features.

Contributors


xudafeng


ColaDaddyz


sriting

This project follows the git-contributor spec, auto updated at Tue Dec 07 2021 17:37:08 GMT+0800.

Installment

$ npm i electron-windows --save

Demo

APIs

init

const WindowManager = require('electron-windows');
const windowManager = new WindowManager();

create

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,
});

TODO

  • support storage of window's size and other configuration
  • clone pointed window

License

The MIT License (MIT)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].