index.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  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">
  7. <link rel="stylesheet" type="text/css" href="../../../../examples/resources/syntax/shCore.css">
  8. <link rel="stylesheet" type="text/css" href="../../../../examples/resources/demo.css">
  9. <script type="text/javascript" language="javascript" src="../../../../examples/resources/syntax/shCore.js"></script>
  10. <script type="text/javascript" language="javascript" src="../../../../examples/resources/demo.js"></script>
  11. <title>Responsive examples - Child row control</title>
  12. </head>
  13. <body class="dt-example">
  14. <div class="container">
  15. <section>
  16. <h1>Responsive example <span>Child row control</span></h1>
  17. <div class="info">
  18. <p>When a column is removed from display by Responsive, the data is still available in the table and can be displayed in a DataTables <em>child row</em> (see
  19. <a href="//datatables.net/reference/api/row().child()"><code class="api" title="DataTables API method">row().child()<span>DT</span></code></a>). By default
  20. Responsive will show child row controls in the first column when the table has been collapsed, allowing the end user to show / hide the information from the hidden
  21. columns.</p>
  22. <p>Responsive has a number of options for display of the child rows:</p>
  23. <ul class="markdown">
  24. <li>If child row display is enabled: <a href="//datatables.net/extensions/responsive/reference/option/responsive.details"><code class="option" title=
  25. "Responsive initialisation option">responsive.details<span>R</span></code></a></li>
  26. <li>How the show / hide control is displayed: <a href="//datatables.net/extensions/responsive/reference/option/responsive.details.type"><code class="option"
  27. title="Responsive initialisation option">responsive.details.type<span>R</span></code></a></li>
  28. <li>How the child row is rendered: <a href="//datatables.net/extensions/responsive/reference/option/responsive.details.renderer"><code class="option" title=
  29. "Responsive initialisation option">responsive.details.renderer<span>R</span></code></a></li>
  30. </ul>
  31. <p>This section shows examples of these options being used.</p>
  32. </div>
  33. </section>
  34. </div>
  35. <section>
  36. <div class="footer">
  37. <div class="gradient"></div>
  38. <div class="liner">
  39. <div class="toc">
  40. <div class="toc-group">
  41. <h3><a href="./index.html">Child rows</a></h3>
  42. <ul class="toc">
  43. <li><a href="./disable-child-rows.html">Disable child rows</a></li>
  44. <li><a href="./column-control.html">Column controlled child rows</a></li>
  45. <li><a href="./right-column.html">Column control - right</a></li>
  46. <li><a href="./whole-row-control.html">Whole row child row control</a></li>
  47. <li><a href="./custom-renderer.html">Custom child row renderer</a></li>
  48. </ul>
  49. </div>
  50. </div>
  51. <div class="epilogue">
  52. <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br>
  53. 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>
  54. which extend the capabilities of DataTables.</p>
  55. <p class="copyright">DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> &#169; 2007-2015<br>
  56. DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p>
  57. </div>
  58. </div>
  59. </div>
  60. </section>
  61. </body>
  62. </html>