Miss any of our Open RFC calls?Watch the recordings here! »

electron-togglify-window

0.1.0 • Public • Published

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 be hide or scale.

Run demo

$ npm start

License

MIT © Jimmy Moon

Install

npm i electron-togglify-window

DownloadsWeekly Downloads

5

Version

0.1.0

License

MIT

Last publish

Collaborators

  • avatar