Coder Social home page Coder Social logo

twopane's Introduction

TwoPane Plugin

jQuery UI plugin to handle a resizable two-pane view (commander-like :)

Getting Started

Download the required sources:

  • production version: JS, CSS;
  • development version: JS, CSS.

In your web page:

<link href="jqueryui.min.css" rel="stylesheet">
<link href="dist/twopane.jqueryui.min.css" rel="stylesheet">
<script src="jquery.js"></script>
<script src="jquery-ui.js"></script>
<script src="dist/twopane.min.js"></script>
<script>
jQuery(function($) {
  $('.selector').twopane();
});
</script>

Then add a nice jQuery/CSS effect on resize for a better look! (see the demo)

Documentation

The plugin initialize a twopane view (commander-like) inside the selected element. The elements used for the left and right pane can be explicitly selected, otherwise the first two children (if any) will be used. Note that all the children not selected for the pane will be hidden by the widget (and restored on destruction).

Options reference

option type default description
left selector '> *:nth-child(1)' selector for the left pane element
right selector '> *:nth-child(2)' selector for the right pane element
resizable object { helper: "ui-resizable-helper ui-corner-all" } Whetever is accepted by a jQueryUI resizable (but handles)
iframeFix selector or boolean false allow resize with cursor over iframes

[resizable-api]:

Event reference

event description
create Standard jQuery Widget event

Demo

This is a simple demo, which show the look that can be achieved.

Release History

0.1.0 First release

twopane's People

Contributors

giosh94mhz avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.