Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serapath/twm
the window manager
https://github.com/serapath/twm
manager pane panel tab tiler tiling window
Last synced: 8 days ago
JSON representation
the window manager
- Host: GitHub
- URL: https://github.com/serapath/twm
- Owner: serapath
- License: mit
- Created: 2018-11-23T00:32:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T21:53:58.000Z (over 5 years ago)
- Last Synced: 2024-10-28T13:11:15.854Z (16 days ago)
- Topics: manager, pane, panel, tab, tiler, tiling, window
- Language: JavaScript
- Homepage: https://serapath.github.io/twm/
- Size: 3.61 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 rowsa 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