patternfly
Version:
This reference implementation of PatternFly is based on [Bootstrap v3](http://getbootstrap.com/). Think of PatternFly as a "skinned" version of Bootstrap with additional components and customizations.
44 lines (33 loc) • 1.13 kB
text/xml
<dt-example table-type="html-wide" table-class="display nowrap" order="10">
<css lib="datatables colreorder fixedcolumns" />
<js lib="jquery datatables colreorder fixedcolumns">
<![CDATA[
$(document).ready(function() {
window.table = $('#example').DataTable( {
dom: 'Rlfrtip',
scrollX: true,
scrollCollapse: true,
columnDefs: [
{ orderable: false, targets: 0 },
{ orderable: false, targets: -1 }
],
ordering: [[ 1, 'asc' ]],
colReorder: {
fixedColumnsLeft: 1,
fixedColumnsRight: 1
}
} );
window.fc = new $.fn.dataTable.FixedColumns( table, {
leftColumns: 1,
rightColumns: 1
} );
} );
]]>
</js>
<title lib="ColReorder">FixedColumns integration</title>
<info><.
ColReorder provides the `fixedColumnsLeft` and `fixedColumnsRight` options which allows you disallow reordering of the fixed columns (which is required).
]]></info>
</dt-example>