Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/serapath/twm

the window manager
https://github.com/serapath/twm

manager pane panel tab tiler tiling window

Last synced: about 1 month ago
JSON representation

the window manager

Awesome Lists containing this project

README

        

# twm
**t**he **w**indow **m**anager

## example
`npm install twm`
```js
/*
[] === is shown tab (only one per TILE)
=> if multiple are present, the last one will take preceedence
[[]] === is focused (only one per TWM)
=> if multiple TWMs are active in the window, the last
one's [[]] will take preceedence

... | ... === seperates columns
\n === seperates rows

a tile with only one tab will automatically show it
*/
var twm = require('twm')

var opts = {
// optional - initial & current element
el: document.createElement('div'),
// optional - tab name
name: 'preview'
// if only TAB in "PANE", a missing "tab name" hides the tab title altogether
}
```

## how does it work?
**@todo:** describe conceptually how the code works