0.0.1 • Published 9 years ago

electron-pane-window v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

electron-pane-window

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

npm.io

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