You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-4Lines changed: 33 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,23 +6,52 @@ Grab the latest release from Github or install using bower:
6
6
7
7
bower install jquery.tableCheckbox.js
8
8
9
+
## Features
10
+
11
+
- Translates clicks on rows to their checkbox
12
+
- Supports master checkbox in the table header
13
+
- Supports selection of multiple rows by holding down the shift key
14
+
- No mess with text selections without the need to disable them.
15
+
The Plugin avoids getting in the way of the user if he wants to select / deselect text and tries to be smart about unwanted selections when selecting rows.
16
+
9
17
## Usage
10
18
11
-
$('table').tableCheckbox();
19
+
<table>
20
+
<thead>
21
+
<th><input type="checkbox"></th>
22
+
<th>Name</th>
23
+
</thead>
24
+
<tbody>
25
+
<tr>
26
+
<td><input type="checkbox"></td>
27
+
<td>First item</td>
28
+
</tr>
29
+
<tr>
30
+
<td><input type="checkbox"></td>
31
+
<td>First item</td>
32
+
</tr>
33
+
</tbody>
34
+
</table>
35
+
<script>$('table').tableCheckbox();</script>
36
+
37
+
You may use this plugin with other markup structures or ways of input.
38
+
Use the options below to make it fit your use case.
39
+
40
+
12
41
13
42
## Options
14
43
15
-
$('table').tableCheckbox({ /* options */ })
44
+
$('table').tableCheckbox({ /* options */ });
16
45
17
46
### selectedRowClass
18
47
19
-
Default: `'warning'` to comply with Bootstrap.
48
+
Default: `warning` to comply with Bootstrap.
20
49
21
50
This class will be applied to any table row that is selected.
0 commit comments