Skip to content

Resizable splitpane using splitters in JavaScript / HTML

Notifications You must be signed in to change notification settings

Mylogo/splitter.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

splitter.js

Easy resizable HTML elements with a splitter

Dependency: jQuery

Support for:

  • Horizontal Splitter
  • Vertical Splitters
  • Both at once
  • min-width is minded

Horizontal Splitter

Horizontal Splitter See: horizontal_example.html

Important: Both resizable elements as well as the splitter need to have the css property display: inline-block
Example:
<div class="box"></div> <!-- .box gives them a height, width and display: inline-block-->
<div id="splitter"></div>
<div class="box"></div>
<script>initHorizontalSplitter('#splitter'); // jQuery slector</script>

Vertical Splitter

Vertical Splitter

Important: Both resizable elements as well as the splitter need to have the css property display: block
Example:
<div class="box"></div> <!-- .box gives them a height, width and display: block-->
<div id="splitter"></div>
<div class="box"></div>
<script>initVerticalSplitter('#splitter'); // jQuery slector</script>

Horizontal and Vertical Splitters

Horizontal and Vertical Splitter

Example:
<div class="horizontal-wrapper">
    <!-- See: Horizontal Splitter -->
    <div class="box"></div><div id="splitter-horizontal"></div><div class="box"></div>
</div>
<div id="splitter-vertical"></div>
<div class="box-bottom"></div>

Thanks for checking out splitter.js! It's coded with simplicity in mind so anyone can understand and use it.

Dennis Heckmann 2018

About

Resizable splitpane using splitters in JavaScript / HTML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published