An open API service indexing awesome lists of open source software.

https://github.com/ragingwind/electron-pane-window

Create a pane style window, no frame, no titlebar, stick the window on the sides of screen
https://github.com/ragingwind/electron-pane-window

Last synced: 10 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# electron-pane-window

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

![](https://cloud.githubusercontent.com/assets/124117/10764241/7a8fd4a2-7d10-11e5-8e90-b6d5fde4b4d7.png)

## Install

```
$ npm install --save electron-pane-window
```

## Usage

```js
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](https://github.com/atom/electron/blob/master/docs/api/browser-window.md#new-browserwindowoptions). 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](http://ragingwind.md)