Dead simple pane-splitter control based on flexbox.
npm install flex-splitter-directiveDead simple panes splitter control based on flexbox.
* Declarative.
Just add an attribute to the DOM element. Don't need to write any JavaScript.
* Lightweight.
JS + CSS ~ 1.2kB (gzipped) with no dependencies.
``sh`
$ npm i flex-splitter-directive
`js`
import "flex-splitter-directive"
import "flex-splitter-directive/styles.min.css"
`html`
1. Load CSS and JS.
2. Set data-flex-splitter-horizontal (or data-flex-splitter-vertical for vertical) attribute to the parent element of the panes.keyboard-movement
* Optionally, specify the option, as in data-flex-splitter-horizontal="keyboard-movement:10".
3. Insert
between each pane.
4. Set the following styles for each pane as required:
* width / height for the initial size.
* min-width / min-height for the minimum size.
* max-width / max-height for the maximum size.
* flex: auto` for filling space.* Split (nathancahill/split)
* Splitter (andrienko/splitter)
* SplitMe (alesgenova/split-me)