0.1.0 • Published 9 years ago
electron-togglify-window v0.1.0
electron-toggle-window
Add toggle feature to window. You can make a toggle-able window
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 behide
orscale
.
Run demo
$ npm start
License
MIT © Jimmy Moon
0.1.0
9 years ago