Skip to content

le-tex/jquery-tablemanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

About

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/).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors