Skip to content

jColumnz is a small, simple jQuery plugin that displays a data tree like the columns view of Mac OS X Finder.

Notifications You must be signed in to change notification settings

antarestupin/jcolumnz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jColumnz

jColumnz is a small, simple jQuery plugin that displays a data tree like the columns view of Mac OS X Finder.

Demo here

Installation and use

You will firstly need to include the javascript and the css files on the document.

Then call jColumnz on some empty <div> :

$(function(){
    var data = [
        { label: "Line 1" },
        { label: "Line 2" }
    ];
    $('#data').columnz(data);
});

Notice that you can easily chose how the result will be displayed in the css file.

You can children to elements :

    var data = [
        { label: "Line 1" },
        { label: "Line 2", children: [
            { label: "Child 1" },
            { label: "Child 2" }
        ] }
    ];
});

You can also add click event listeners on elements :

    var data = [
        { label: "Line 1", on_click: function(){ alert("I'm the first line !"); } },
        { label: "Line 2", children: [
            { label: "Child 1" },
            { label: "Child 2" }
        ] }
    ];
});

Compatibility

jColumnz fully works on every major recent browser, including IE8. It will work also on IE7, but lines icons will not be displayed. It hasn't been tested on IE6 and below.

About

jColumnz is a small, simple jQuery plugin that displays a data tree like the columns view of Mac OS X Finder.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published