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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i electron-togglify-window

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • ragingwind