0.1.0 • Published 9 years ago

electron-togglify-window v0.1.0

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

electron-toggle-window

Add toggle feature to window. You can make a toggle-able window

npm.io

Install

$ npm install --save electron-togglify-window

Usage

const BrowserWindow = require('browser-window');
const togglify = require('electron-togglify-window');

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

API

togglify(winInstance, options)

winInstance

Instance of the target window should be passed created just to toggle.

options

Type: object

  • animation: the way of toggle animation when its will be hide or scale.

Run demo

$ npm start

License

MIT © Jimmy Moon