-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
executable file
·37 lines (25 loc) · 1.36 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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