1 <?xml version="1.0" encoding="UTF-8" ?>
2 <dt-example table-type="html-wide" table-class="stripe row-border order-column" order="3">
4 <css lib="datatables fixedcolumns">
5 /* Ensure that the demo table scrolls */
6 th, td { white-space: nowrap; }
7 div.dataTables_wrapper {
12 <js lib="jquery datatables fixedcolumns">
14 $(document).ready(function() {
15 var table = $('#example').DataTable( {
29 <title lib="FixedColumns">Right column only</title>
33 FixedColumns has the ability to freeze columns on both the left and right hand sides of the table. By default it will fix the first column on the left, but using the initialisation parameters `fc-init fixedColumns.leftColumns` and `fc-init fixedColumns.rightColumns` you can alter this to fix the columns on the right as well. This example shows a single column fixed in place, in this case the right most column.