npm.io
0.0.1 • Published 10 years ago

electron-pane-window

Licence
MIT
Version
0.0.1
Deps
1
Vulns
0
Weekly
0
Stars
10

electron-pane-window

Create a pane style window, no frame, no titlebar, stick the window on the sides of screen

Install

$ npm install --save electron-pane-window

Usage

const PaneBrowserwindow = require('electron-pane-window');

win = new PaneBrowserWindow({
 side: 'left',
 'always-on-top': false,
 width: 600
});

API

PaneBrowserwindow(options)
options

Type: object

Almost same with options of Browser Window of Electron. Here is additional options for this:

  • side: which side of screen to stick to. top, left, right and bottom
setPositionTo(side)

Set position of window to on side of screen

  • side: which side of screen to stick to. top, left, right and bottom

Run demo

$ npm start

License

MIT ragingwind

Keywords