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.
42 lines (29 loc) • 1.14 kB
text/xml
<dt-example table-type="html" order="8">
<css lib="datatables colreorder" />
<js lib="jquery datatables colreorder">
<![CDATA[
$(document).ready(function() {
var table = $('#example').DataTable( {
dom: 'Rlfrtip',
colReorder: {
order: [ 4, 3, 2, 1, 0 ]
}
} );
$('#reset').click( function (e) {
e.preventDefault();
table.colReorder.reset();
} );
} );
]]>
</js>
<title lib="ColReorder">Reset ordering API</title>
<info><.
]]></info>
<demo-html>
<button id="reset">Reset to original HTML order</button>
<br/><br/>
</demo-html>
</dt-example>