Skip to content

theoutlander/SplitterJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features

  • Plug-n-Play
  • Horizontal | Vertical
  • Fixed | Collapsible
  • Drag actual splitter or placeholder splitter
  • Responsive
  • Functional demos of Complex Layouts
  • Zero dependencies
  • < 1KB Minified (TODO)

Usage:

require(['Splitter'], function (Splitter) {
	new Splitter({
		elementOne: contentContainer,   // Div to the left of the splitter
		elementTwo: bottomDiv,          // Div to the right of the splitter
		splitter: bottomsplitter,       // Splitter div
		orientation: 'horizontal',      // Orientation [vertical | horizontal]
		collapse: 'bottom',             // Collapse Direction [left | right | top | bottom | fixed]
		placeholderSplitter: false,     // Drag a placeholder splitter
		splitterHeight: '5px'           // Control the thickness of the splitter
	}).Render();
});

Vertical splitter:

25_screenshot 2014-02-16 15 56 47

http://jsfiddle.net/theoutlander/dCwS9/


Simple Layout

25_screenshot 2014-02-16 15 52 22

http://jsfiddle.net/theoutlander/9NQ8g/


Complex Layout

23_screenshot 2014-02-16 15 51 10

http://jsfiddle.net/theoutlander/ULFWP/


Additional examples in the Demo folder

About

Javascript Splitter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published