A jquery-pugin that can toggle rows and columns in a HTML-Table. It requires ''clickMenu" for the column selector widget (http://p.sohei.org/jquery-plugins/clickmenu/).
JavaScript Perl CSS Erlang
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
img
js
LICENSING-GPL
LICENSING-MIT
README
test.html

README

jQuery tablemanager plugin

Authors: Mathias Vonende, Gerrit Imsieke, le-tex publishing services GmbH
Date :   2012-05-07
Sponsor: Hogrefe Verlag GmbH & Co. KG, Göttingen

A plugin to toggle the visibility of rows and columns in an 
HTML Table. 

Licensed under the GNU/GPL and MIT Licenses.

Requires clickMenu for the column selector widget:
http://p.sohei.org/jquery-plugins/clickmenu/

Deploy:
To use the jquery-tablemanager, you have to load jquery (working with version 1.7.1) and jquery-clickmenu (http://p.sohei.org/jquery-plugins/clickmenu/) like in this example: 

    <script src="js/jquery-1.7.1.js" type="text/javascript">//</script>
    <script src="js/jquery.clickmenu.js" type="text/javascript">//</script>

To use the test-example (test.html) simply put these two files into the js-folder.

Usage:
Attach a class 'tablemanager' to each table that should be managed.
The table must have an id attribute.
Attach a class 'tablemanager-collapsible' to each th that should be collapsible.
Put the column heads as th elements in a thead element (instead of putting them in tbody).

  $('table.tablemanager').each(function() {
    $.fn.tablemanager($(this), {mincols: 5});
  });

mincols is the minimum number of columns that the table must have 
for a column selector widget to be rendered.

In the test-example, the initialization code is found in the file: js/application.js