5 <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
6 <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
8 <title>Responsive example - Bootstrap styling</title>
9 <link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
10 <link rel="stylesheet" type="text/css" href="../../../Plugins/integration/bootstrap/3/dataTables.bootstrap.css">
11 <link rel="stylesheet" type="text/css" href="../../css/dataTables.responsive.css">
12 <link rel="stylesheet" type="text/css" href="../../../../examples/resources/syntax/shCore.css">
13 <link rel="stylesheet" type="text/css" href="../../../../examples/resources/demo.css">
14 <style type="text/css" class="init">
16 body { font-size: 140% }
24 <script type="text/javascript" language="javascript" src="../../../../media/js/jquery.js"></script>
25 <script type="text/javascript" language="javascript" src="../../../../media/js/jquery.dataTables.js"></script>
26 <script type="text/javascript" language="javascript" src="../../js/dataTables.responsive.js"></script>
27 <script type="text/javascript" language="javascript" src="../../../Plugins/integration/bootstrap/3/dataTables.bootstrap.js"></script>
28 <script type="text/javascript" language="javascript" src="../../../../examples/resources/syntax/shCore.js"></script>
29 <script type="text/javascript" language="javascript" src="../../../../examples/resources/demo.js"></script>
30 <script type="text/javascript" language="javascript" class="init">
34 $(document).ready(function() {
35 $('#example').DataTable();
43 <body class="dt-example">
44 <div class="container">
46 <h1>Responsive example <span>Bootstrap styling</span></h1>
49 <p>This example shows DataTables and the Responsive extension being used with the <a href="http://getbootstrap.com">Bootstrap</a> framework providing the styling.
50 The <a href="//datatables.net/manual/styling/bootstrap">DataTables / Bootstrap integration files</a> prove seamless integration for DataTables to be used in a
53 <p>Note that the <code>dt-responsive</code> class is used to indicate to the extension that it should be enabled on this page, as <code>responsive</code> <a href=
54 "http://getbootstrap.com/css/#tables-responsive">has special meaning in Bootstrap</a>. The <a href=
55 "//datatables.net/extensions/responsive/reference/option/responsive"><code class="option" title=
56 "Responsive initialisation option">responsive<span>R</span></code></a> option could also be used if required.</p>
59 <table id="example" class="table table-striped table-hover dt-responsive" cellspacing="0" width="100%">
78 <td>System Architect</td>
84 <td>t.nixon@datatables.net</td>
95 <td>g.winters@datatables.net</td>
100 <td>Junior Technical Author</td>
101 <td>San Francisco</td>
106 <td>a.cox@datatables.net</td>
111 <td>Senior Javascript Developer</td>
117 <td>c.kelly@datatables.net</td>
128 <td>a.satou@datatables.net</td>
133 <td>Integration Specialist</td>
139 <td>b.williamson@datatables.net</td>
144 <td>Sales Assistant</td>
145 <td>San Francisco</td>
150 <td>h.chandler@datatables.net</td>
155 <td>Integration Specialist</td>
161 <td>r.davidson@datatables.net</td>
166 <td>Javascript Developer</td>
167 <td>San Francisco</td>
172 <td>c.hurst@datatables.net</td>
177 <td>Software Engineer</td>
183 <td>s.frost@datatables.net</td>
188 <td>Office Manager</td>
194 <td>j.gaines@datatables.net</td>
199 <td>Support Lead</td>
205 <td>q.flynn@datatables.net</td>
210 <td>Regional Director</td>
211 <td>San Francisco</td>
216 <td>c.marshall@datatables.net</td>
221 <td>Senior Marketing Designer</td>
227 <td>h.kennedy@datatables.net</td>
232 <td>Regional Director</td>
238 <td>t.fitzpatrick@datatables.net</td>
243 <td>Marketing Designer</td>
249 <td>m.silva@datatables.net</td>
254 <td>Chief Financial Officer (CFO)</td>
260 <td>p.byrd@datatables.net</td>
265 <td>Systems Administrator</td>
271 <td>g.little@datatables.net</td>
276 <td>Software Engineer</td>
282 <td>b.greer@datatables.net</td>
287 <td>Personnel Lead</td>
293 <td>d.rios@datatables.net</td>
298 <td>Development Lead</td>
304 <td>j.caldwell@datatables.net</td>
309 <td>Chief Marketing Officer (CMO)</td>
315 <td>y.berry@datatables.net</td>
320 <td>Pre-Sales Support</td>
326 <td>c.vance@datatables.net</td>
331 <td>Sales Assistant</td>
337 <td>d.wilder@datatables.net</td>
342 <td>Chief Executive Officer (CEO)</td>
348 <td>a.ramos@datatables.net</td>
359 <td>g.joyce@datatables.net</td>
364 <td>Regional Director</td>
370 <td>j.chang@datatables.net</td>
375 <td>Software Engineer</td>
376 <td>San Francisco</td>
381 <td>b.wagner@datatables.net</td>
386 <td>Chief Operating Officer (COO)</td>
387 <td>San Francisco</td>
392 <td>f.green@datatables.net</td>
397 <td>Regional Marketing</td>
403 <td>s.itou@datatables.net</td>
408 <td>Integration Specialist</td>
414 <td>m.house@datatables.net</td>
425 <td>s.burks@datatables.net</td>
430 <td>Technical Author</td>
436 <td>p.bartlett@datatables.net</td>
442 <td>San Francisco</td>
447 <td>g.cortez@datatables.net</td>
452 <td>Post-Sales support</td>
458 <td>m.mccray@datatables.net</td>
463 <td>Marketing Designer</td>
464 <td>San Francisco</td>
469 <td>u.butler@datatables.net</td>
474 <td>Office Manager</td>
475 <td>San Francisco</td>
480 <td>h.hatfield@datatables.net</td>
486 <td>San Francisco</td>
491 <td>h.fuentes@datatables.net</td>
496 <td>Financial Controller</td>
497 <td>San Francisco</td>
502 <td>v.harrell@datatables.net</td>
507 <td>Office Manager</td>
513 <td>t.mooney@datatables.net</td>
524 <td>j.bradshaw@datatables.net</td>
529 <td>Support Engineer</td>
535 <td>o.liang@datatables.net</td>
540 <td>Software Engineer</td>
546 <td>b.nash@datatables.net</td>
551 <td>Support Engineer</td>
557 <td>s.yamamoto@datatables.net</td>
568 <td>t.walton@datatables.net</td>
573 <td>Support Engineer</td>
574 <td>San Francisco</td>
579 <td>f.camacho@datatables.net</td>
584 <td>Data Coordinator</td>
590 <td>s.baldwin@datatables.net</td>
595 <td>Software Engineer</td>
601 <td>z.frank@datatables.net</td>
606 <td>Software Engineer</td>
607 <td>San Francisco</td>
612 <td>z.serrano@datatables.net</td>
617 <td>Junior Javascript Developer</td>
623 <td>j.acosta@datatables.net</td>
628 <td>Sales Assistant</td>
634 <td>c.stevens@datatables.net</td>
639 <td>Regional Director</td>
645 <td>h.butler@datatables.net</td>
650 <td>Systems Administrator</td>
656 <td>l.greer@datatables.net</td>
662 <td>San Francisco</td>
667 <td>j.alexander@datatables.net</td>
672 <td>Regional Director</td>
678 <td>s.decker@datatables.net</td>
683 <td>Javascript Developer</td>
689 <td>m.bruce@datatables.net</td>
694 <td>Customer Support</td>
700 <td>d.snider@datatables.net</td>
706 <li class="active">Javascript</li>
710 <li>Server-side script</li>
715 <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
716 $('#example').DataTable();
719 <p>In addition to the above code, the following Javascript library files are loaded for use in this example:</p>
722 <li><a href="../../../../media/js/jquery.js">../../../../media/js/jquery.js</a></li>
723 <li><a href="../../../../media/js/jquery.dataTables.js">../../../../media/js/jquery.dataTables.js</a></li>
724 <li><a href="../../js/dataTables.responsive.js">../../js/dataTables.responsive.js</a></li>
725 <li><a href="../../../Plugins/integration/bootstrap/3/dataTables.bootstrap.js">../../../Plugins/integration/bootstrap/3/dataTables.bootstrap.js</a></li>
730 <p>The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:</p>
735 <p>This example uses a little bit of additional CSS beyond what is loaded from the library files (below), in order to correctly display the table. The
736 additional CSS used is shown below:</p><code class="multiline language-css">body { font-size: 140% }
744 <p>The following CSS library files are loaded for use in this example to provide the styling of the table:</p>
747 <li><a href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css</a></li>
748 <li><a href="../../../Plugins/integration/bootstrap/3/dataTables.bootstrap.css">../../../Plugins/integration/bootstrap/3/dataTables.bootstrap.css</a></li>
749 <li><a href="../../css/dataTables.responsive.css">../../css/dataTables.responsive.css</a></li>
754 <p>This table loads data by Ajax. The latest data that has been loaded is shown below. This data will update automatically as any additional data is
759 <p>The script used to perform the server-side processing for this table is shown below. Please note that this is just an example script using PHP. Server-side
760 processing scripts can be written in any language, using <a href="//datatables.net/manual/server-side">the protocol described in the DataTables
761 documentation</a>.</p>
769 <div class="gradient"></div>
772 <h2>Other examples</h2>
775 <div class="toc-group">
776 <h3><a href="../initialisation/index.html">Basic initialisation</a></h3>
778 <li><a href="../initialisation/className.html">Class name</a></li>
779 <li><a href="../initialisation/option.html">Configuration option</a></li>
780 <li><a href="../initialisation/new.html">`new` constructor</a></li>
781 <li><a href="../initialisation/ajax.html">Ajax data</a></li>
782 <li><a href="../initialisation/default.html">Default initialisation</a></li>
786 <div class="toc-group">
787 <h3><a href="./index.html">Styling</a></h3>
788 <ul class="toc active">
789 <li class="active"><a href="./bootstrap.html">Bootstrap styling</a></li>
790 <li><a href="./foundation.html">Foundation styling</a></li>
791 <li><a href="./scrolling.html">Vertical scrolling</a></li>
792 <li><a href="./compact.html">Compact styling</a></li>
796 <div class="toc-group">
797 <h3><a href="../display-control/index.html">Display control</a></h3>
799 <li><a href="../display-control/auto.html">Automatic column hiding</a></li>
800 <li><a href="../display-control/classes.html">Class control</a></li>
801 <li><a href="../display-control/init-classes.html">Assigned class control</a></li>
802 <li><a href="../display-control/fixedHeader.html">With FixedHeader</a></li>
803 <li><a href="../display-control/complexHeader.html">Complex headers (rowspan / colspan)</a></li>
807 <div class="toc-group">
808 <h3><a href="../child-rows/index.html">Child rows</a></h3>
810 <li><a href="../child-rows/disable-child-rows.html">Disable child rows</a></li>
811 <li><a href="../child-rows/column-control.html">Column controlled child rows</a></li>
812 <li><a href="../child-rows/right-column.html">Column control - right</a></li>
813 <li><a href="../child-rows/whole-row-control.html">Whole row child row control</a></li>
814 <li><a href="../child-rows/custom-renderer.html">Custom child row renderer</a></li>
819 <div class="epilogue">
820 <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br>
821 Additionally, there are a wide range of <a href="http://www.datatables.net/extras">extras</a> and <a href="http://www.datatables.net/plug-ins">plug-ins</a>
822 which extend the capabilities of DataTables.</p>
824 <p class="copyright">DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> © 2007-2015<br>
825 DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p>