Tables

Basic Tables

Pages extensively uses Bootstrap's .table to style its tables.

circle-info

Please refer to their documentation for guidelines. Bootstrap Tablesarrow-up-right

DataTables

DataTables is a highly flexible jQuery plug-in based upon the foundations of progressive enhancement, and will add advanced interaction controls to any HTML table.

circle-info

Please refer to DataTables Documentationarrow-up-right to learn about plugin options

Step one

Include the plugin stylesheet jquery.dataTables.css and other extensions inside the <head>.

<link type="text/css" rel="stylesheet" href="assets/plugins/jquery-datatable/media/css/jquery.dataTables.css">
<link type="text/css" rel="stylesheet" href="assets/plugins/jquery-datatable/extensions/FixedColumns/css/dataTables.fixedColumns.min.css">
<link media="screen" type="text/css" rel="stylesheet" href="assets/plugins/datatables-responsive/css/datatables.responsive.css">

Step two

Include the plugin javascript and extension files inside the <body>before core template script inclusions, if it's not there already.

<script type="text/javascript" src="assets/plugins/jquery-datatable/media/js/jquery.dataTables.min.js">
<script type="text/javascript" src="assets/plugins/jquery-datatable/extensions/TableTools/js/dataTables.tableTools.min.js">
<script type="text/javascript" src="assets/plugins/jquery-datatable/extensions/Bootstrap/jquery-datatable-bootstrap.js">
<script src="assets/plugins/datatables-responsive/js/datatables.responsive.js" type="text/javascript">
<script src="assets/plugins/datatables-responsive/js/lodash.min.js" type="text/javascript">

Step three

Create the markup for your table. You can also add Bootstrap table classesarrow-up-right to customize the look

Step four

Apply the plugin to your table.

Use any of the following pre-configured settings to get DataTables customized to match your purpose. For more advanced options please refer to DataTables Documentationarrow-up-right

Table with dynamic rows

Last updated