Split Pane jQuery plugin

I have created a jQuery plugin for adding split panes to you web site or web application.

Split panes can be nested. Component min-widths and min-heights are supported. I have not implemented support for max-width and max-height, yet.

I’ve tested the code in the latest versions of Chrome, Firefox and Safari on OS X, and in IE8 on XP.

The source code can be found at github.

It’s only version 0.3, so there will probably be some changes in the near future. Please give me you feed back!

Check out the following pages for examples on how to use it:

N.B., not all markup in the examples are needed for setting up the split panes. <div class="split-pane-frame"> and <div class="decoration"> are used for styling purposes only. Feel free to use them, but you might want to style things your own way.

9 Responses to Split Pane jQuery plugin

  1. Hi Simon,

    Woks absolutely great and quite simple to use !
    I am impressed by your blogs and the broad technical knowledge you show.
    Thanks for sharing,


  2. Hi Simon – I like the plug in. Thank you very much! One thing I feel is missing is the “outline” mode that was supported in Dave Methvin’s splitter (I was using it until recently but decided to move on because it does not work with jQuery over 1.4). It allows the user to move the “zombie” divider and only resize split panes ONCE on mouseup. I work on enterprise business apps with dashboards and the issue with immediate resize is that IF the contents of the panes are large scrollable grids (fit to the pane sales orders, inventory parts, etc), the browser behavior becomes jerky when the divider is moved. Your code is very clear and I was able to make minimal modifications to it to support the outline by cloning the divider on mousedown (borrowed from Dave’s approach). However, it’s not the prettiest solution because of how the resizing math is currently packaged in createMousemove. Just a suggestion, in case you are planning to improve the plugin in the future. I don’t think there is anything lightweight of similar quality and functionality out there.

    • Thanks for the feedback! I have also worked with visualizing large datasets, so I’m familiar with your problem. It’s a good suggestion, I will definitely consider implementing that.

  3. Can it support bootstrap responsive layout inside splitter div. Means if resize splitter by split bar then it make div responsive?

    • That shouldn’t be a problem. Using container-fluid is probably best. One thing to keep in mind is that media queries, controlling when phone/tablet/desktop layouts are used, react on browser width not split-pane-component width.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>