File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <dt-example table-type =" html-wide" order =" 10" >
2
+ <dt-example table-type =" html-wide" table-class = " display no-wrap " order =" 10" >
3
3
4
4
<css lib =" datatables colreorder fixedcolumns" />
5
5
<js lib =" jquery datatables colreorder fixedcolumns" >
6
6
<![CDATA[
7
7
8
8
$(document).ready(function() {
9
- var table = $('#example').dataTable ( {
9
+ window. table = $('#example').DataTable ( {
10
10
dom: 'Rlfrtip',
11
11
scrollX: true,
12
12
scrollCollapse: true,
@@ -21,17 +21,7 @@ $(document).ready(function() {
21
21
}
22
22
} );
23
23
24
- // Show an index column at the start and end of the table
25
- table.on( 'order.dt search.dt', function () {
26
- table
27
- .column([0,-1], {search:'applied', order:'applied'})
28
- .nodes()
29
- .each( function (cell, i) {
30
- cell.innerHTML = i+1;
31
- } );
32
- } ).draw();
33
-
34
- new $.fn.dataTable.fixedColumns( table, {
24
+ window.fc = new $.fn.dataTable.FixedColumns( table, {
35
25
leftColumns: 1,
36
26
rightColumns: 1
37
27
} );
You can’t perform that action at this time.
0 commit comments