super-tiny-splitpane
v1.1.0
Published
Bare minimum implementation of a Splitpane UI with support for horizontal and vertical layouts.
Downloads
14
Readme
╭─╮ ┬ ┬ ╭─╮ ╭─╮ ┬─╮ ╭┬╮ ┬ ╭╮╭ ╭─╮ ╭─╮ ╭─╮ ┬ ┬ ╭┬╮ ╭─╮ ╭─╮ ╭╮╭ ╭─╮
╰─╮ │ │ ├─╯ ├┤ ├┬╯ │ │ │││ ├┤ ╰─╮ ├─╯ │ │ │ ├─╯ ├─┤ │││ ├┤
╰─╯ ╰─╯ ┴ ╰─╯ ┴╰─ ┴ ┴ ╯╰╯ ╰─╯ ╰─╯ ┴ ┴─╯ ┴ ┴ ┴ ┴ ┴ ╯╰╯ ╰─╯
Under 2kb and without dependencies
Bare minimum implementation of a Splitpane UI with support for horizontal and vertical layouts.
Getting Started
- Include
splitpane.js
in an html page,
<script src="splitpane.js"></script>
- Add the following markup,
<div class="splitpane"> <!-- for vertical splitpane add `vertical` -->
<div style="width: 50%"></div> <!-- class and set `height` of first child -->
<div class="handle"></div>
<div></div>
</div>
- Finally, include style rules,
html, body { height: 100% }
.splitpane {width: 100%; height: 100% }
.handle {background-color: lightgrey; }
.handle:hover {background-color: grey }
More Examples
Support
Need help or have a question? post a questions at StackOverflow
Please don't use the issue trackers for support/questions.
Contribution
More than happy to accept external contributions to the project in the form of feedback, bug reports and even better - pull requests :)
License
MIT license Copyright (c) Web Semantics, Inc.