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 - Disable child rows</title>
9 <link rel="stylesheet" type="text/css" href="../../../../media/css/jquery.dataTables.css">
10 <link rel="stylesheet" type="text/css" href="../../css/dataTables.responsive.css">
11 <link rel="stylesheet" type="text/css" href="../../../../examples/resources/syntax/shCore.css">
12 <link rel="stylesheet" type="text/css" href="../../../../examples/resources/demo.css">
13 <style type="text/css" class="init">
16 <script type="text/javascript" language="javascript" src="../../../../media/js/jquery.js"></script>
17 <script type="text/javascript" language="javascript" src="../../../../media/js/jquery.dataTables.js"></script>
18 <script type="text/javascript" language="javascript" src="../../js/dataTables.responsive.js"></script>
19 <script type="text/javascript" language="javascript" src="../../../../examples/resources/syntax/shCore.js"></script>
20 <script type="text/javascript" language="javascript" src="../../../../examples/resources/demo.js"></script>
21 <script type="text/javascript" language="javascript" class="init">
25 $(document).ready(function() {
26 $('#example').DataTable( {
38 <body class="dt-example">
39 <div class="container">
41 <h1>Responsive example <span>Disable child rows</span></h1>
44 <p>By default, when Responsive collapses a table, it will show an option for the end user to expand the row, showing the details of the hidden columns in a child
45 row. This can be disabled using the <a href="//datatables.net/extensions/responsive/reference/option/responsive.details"><code class="option" title=
46 "Responsive initialisation option">responsive.details<span>R</span></code></a> option and setting it to <code>false</code>, as shown in the example below. In this
47 case the hidden data is not directly accessible to the end user.</p>
50 <table id="example" class="display nowrap" cellspacing="0" width="100%">
69 <td>System Architect</td>
75 <td>t.nixon@datatables.net</td>
86 <td>g.winters@datatables.net</td>
91 <td>Junior Technical Author</td>
92 <td>San Francisco</td>
97 <td>a.cox@datatables.net</td>
102 <td>Senior Javascript Developer</td>
108 <td>c.kelly@datatables.net</td>
119 <td>a.satou@datatables.net</td>
124 <td>Integration Specialist</td>
130 <td>b.williamson@datatables.net</td>
135 <td>Sales Assistant</td>
136 <td>San Francisco</td>
141 <td>h.chandler@datatables.net</td>
146 <td>Integration Specialist</td>
152 <td>r.davidson@datatables.net</td>
157 <td>Javascript Developer</td>
158 <td>San Francisco</td>
163 <td>c.hurst@datatables.net</td>
168 <td>Software Engineer</td>
174 <td>s.frost@datatables.net</td>
179 <td>Office Manager</td>
185 <td>j.gaines@datatables.net</td>
190 <td>Support Lead</td>
196 <td>q.flynn@datatables.net</td>
201 <td>Regional Director</td>
202 <td>San Francisco</td>
207 <td>c.marshall@datatables.net</td>
212 <td>Senior Marketing Designer</td>
218 <td>h.kennedy@datatables.net</td>
223 <td>Regional Director</td>
229 <td>t.fitzpatrick@datatables.net</td>
234 <td>Marketing Designer</td>
240 <td>m.silva@datatables.net</td>
245 <td>Chief Financial Officer (CFO)</td>
251 <td>p.byrd@datatables.net</td>
256 <td>Systems Administrator</td>
262 <td>g.little@datatables.net</td>
267 <td>Software Engineer</td>
273 <td>b.greer@datatables.net</td>
278 <td>Personnel Lead</td>
284 <td>d.rios@datatables.net</td>
289 <td>Development Lead</td>
295 <td>j.caldwell@datatables.net</td>
300 <td>Chief Marketing Officer (CMO)</td>
306 <td>y.berry@datatables.net</td>
311 <td>Pre-Sales Support</td>
317 <td>c.vance@datatables.net</td>
322 <td>Sales Assistant</td>
328 <td>d.wilder@datatables.net</td>
333 <td>Chief Executive Officer (CEO)</td>
339 <td>a.ramos@datatables.net</td>
350 <td>g.joyce@datatables.net</td>
355 <td>Regional Director</td>
361 <td>j.chang@datatables.net</td>
366 <td>Software Engineer</td>
367 <td>San Francisco</td>
372 <td>b.wagner@datatables.net</td>
377 <td>Chief Operating Officer (COO)</td>
378 <td>San Francisco</td>
383 <td>f.green@datatables.net</td>
388 <td>Regional Marketing</td>
394 <td>s.itou@datatables.net</td>
399 <td>Integration Specialist</td>
405 <td>m.house@datatables.net</td>
416 <td>s.burks@datatables.net</td>
421 <td>Technical Author</td>
427 <td>p.bartlett@datatables.net</td>
433 <td>San Francisco</td>
438 <td>g.cortez@datatables.net</td>
443 <td>Post-Sales support</td>
449 <td>m.mccray@datatables.net</td>
454 <td>Marketing Designer</td>
455 <td>San Francisco</td>
460 <td>u.butler@datatables.net</td>
465 <td>Office Manager</td>
466 <td>San Francisco</td>
471 <td>h.hatfield@datatables.net</td>
477 <td>San Francisco</td>
482 <td>h.fuentes@datatables.net</td>
487 <td>Financial Controller</td>
488 <td>San Francisco</td>
493 <td>v.harrell@datatables.net</td>
498 <td>Office Manager</td>
504 <td>t.mooney@datatables.net</td>
515 <td>j.bradshaw@datatables.net</td>
520 <td>Support Engineer</td>
526 <td>o.liang@datatables.net</td>
531 <td>Software Engineer</td>
537 <td>b.nash@datatables.net</td>
542 <td>Support Engineer</td>
548 <td>s.yamamoto@datatables.net</td>
559 <td>t.walton@datatables.net</td>
564 <td>Support Engineer</td>
565 <td>San Francisco</td>
570 <td>f.camacho@datatables.net</td>
575 <td>Data Coordinator</td>
581 <td>s.baldwin@datatables.net</td>
586 <td>Software Engineer</td>
592 <td>z.frank@datatables.net</td>
597 <td>Software Engineer</td>
598 <td>San Francisco</td>
603 <td>z.serrano@datatables.net</td>
608 <td>Junior Javascript Developer</td>
614 <td>j.acosta@datatables.net</td>
619 <td>Sales Assistant</td>
625 <td>c.stevens@datatables.net</td>
630 <td>Regional Director</td>
636 <td>h.butler@datatables.net</td>
641 <td>Systems Administrator</td>
647 <td>l.greer@datatables.net</td>
653 <td>San Francisco</td>
658 <td>j.alexander@datatables.net</td>
663 <td>Regional Director</td>
669 <td>s.decker@datatables.net</td>
674 <td>Javascript Developer</td>
680 <td>m.bruce@datatables.net</td>
685 <td>Customer Support</td>
691 <td>d.snider@datatables.net</td>
697 <li class="active">Javascript</li>
701 <li>Server-side script</li>
706 <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
707 $('#example').DataTable( {
714 <p>In addition to the above code, the following Javascript library files are loaded for use in this example:</p>
717 <li><a href="../../../../media/js/jquery.js">../../../../media/js/jquery.js</a></li>
718 <li><a href="../../../../media/js/jquery.dataTables.js">../../../../media/js/jquery.dataTables.js</a></li>
719 <li><a href="../../js/dataTables.responsive.js">../../js/dataTables.responsive.js</a></li>
724 <p>The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:</p>
729 <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
730 additional CSS used is shown below:</p><code class="multiline language-css"></code>
733 <p>The following CSS library files are loaded for use in this example to provide the styling of the table:</p>
736 <li><a href="../../../../media/css/jquery.dataTables.css">../../../../media/css/jquery.dataTables.css</a></li>
737 <li><a href="../../css/dataTables.responsive.css">../../css/dataTables.responsive.css</a></li>
742 <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
747 <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
748 processing scripts can be written in any language, using <a href="//datatables.net/manual/server-side">the protocol described in the DataTables
749 documentation</a>.</p>
757 <div class="gradient"></div>
760 <h2>Other examples</h2>
763 <div class="toc-group">
764 <h3><a href="../initialisation/index.html">Basic initialisation</a></h3>
766 <li><a href="../initialisation/className.html">Class name</a></li>
767 <li><a href="../initialisation/option.html">Configuration option</a></li>
768 <li><a href="../initialisation/new.html">`new` constructor</a></li>
769 <li><a href="../initialisation/ajax.html">Ajax data</a></li>
770 <li><a href="../initialisation/default.html">Default initialisation</a></li>
774 <div class="toc-group">
775 <h3><a href="../styling/index.html">Styling</a></h3>
777 <li><a href="../styling/bootstrap.html">Bootstrap styling</a></li>
778 <li><a href="../styling/foundation.html">Foundation styling</a></li>
779 <li><a href="../styling/scrolling.html">Vertical scrolling</a></li>
780 <li><a href="../styling/compact.html">Compact styling</a></li>
784 <div class="toc-group">
785 <h3><a href="../display-control/index.html">Display control</a></h3>
787 <li><a href="../display-control/auto.html">Automatic column hiding</a></li>
788 <li><a href="../display-control/classes.html">Class control</a></li>
789 <li><a href="../display-control/init-classes.html">Assigned class control</a></li>
790 <li><a href="../display-control/fixedHeader.html">With FixedHeader</a></li>
791 <li><a href="../display-control/complexHeader.html">Complex headers (rowspan / colspan)</a></li>
795 <div class="toc-group">
796 <h3><a href="./index.html">Child rows</a></h3>
797 <ul class="toc active">
798 <li class="active"><a href="./disable-child-rows.html">Disable child rows</a></li>
799 <li><a href="./column-control.html">Column controlled child rows</a></li>
800 <li><a href="./right-column.html">Column control - right</a></li>
801 <li><a href="./whole-row-control.html">Whole row child row control</a></li>
802 <li><a href="./custom-renderer.html">Custom child row renderer</a></li>
807 <div class="epilogue">
808 <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br>
809 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>
810 which extend the capabilities of DataTables.</p>
812 <p class="copyright">DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> © 2007-2015<br>
813 DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p>