bootstrap.xml 1.3KB

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <dt-example table-type="html" table-class="table table-striped table-bordered" order="1">
  3. <css lib="bootstrap datatables-bootstrap">
  4. body { font-size: 140%; }
  5. div.DTTT { margin-bottom: 0.5em; float: right; }
  6. div.dataTables_wrapper { clear: both; }
  7. </css>
  8. <js lib="jquery datatables tabletools datatables-bootstrap">
  9. <![CDATA[
  10. $(document).ready(function() {
  11. var table = $('#example').DataTable();
  12. var tt = new $.fn.dataTable.TableTools( table );
  13. $( tt.fnContainer() ).insertBefore('div.dataTables_wrapper');
  14. } );
  15. ]]>
  16. </js>
  17. <title lib="TableTools">Bootstrap styling</title>
  18. <info><![CDATA[
  19. [Twitter Bootstrap](http://twitter.github.com/bootstrap/) is a very powerful design framework for allowing you to very quickly create applications with a unified look and feel. [DataTables integrates well](http://datatables.net/manual/styling/bootstrap) with Bootstrap, and so does TableTools.
  20. This example shows the default Bootstrap theme being used with a Bootstrap styled DataTable. The [`new`](new_init.html) form of initialising TableTools is used here, as the Bootstrap integration uses a complex `dt-init dom` option (it is possible to provide a custom `dt-init dom` option if you want to, this is just for simplicity!).
  21. ]]></info>
  22. </dt-example>