You are here

table.html.twig in Simple Style Guide 8

<a name="table"></a>

<h3 class="simple-styleguide--sectionhead">{{ default_pattern }}</h3>

<div class="simple-styleguide">

    <p><strong>Normal Table:</strong></p>
    <table class="sticky-enabled sticky-table">
        <thead class="tableHeader-processed">
        <tr>
            <th>Name</th>
            <th>Title of Employee within Company</th>
            <th>Hire Date</th>
            <th>Number</th>
            <th>Description</th>
        </tr>
        </thead>
        <tbody>
        <tr class="odd">
            <td>Bob Barker</td>
            <td>Web Developer</td>
            <td>05/19/2014</td>
            <td>00234</td>
            <td>Nulla dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
        </tr>
        <tr class="even">
            <td>Pat Sajak</td>
            <td>Concierge</td>
            <td>02/24/2011</td>
            <td>003455</td>
            <td>Dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
        </tr>
        <tr class="odd">
            <td>Steve Harvey</td>
            <td>Consultant</td>
            <td>10/19/2013</td>
            <td>43223</td>
            <td>Eleifend vel, consequat non, dictum porta, nulla. Eleifend vel, consequat non, dictum porta, nulla. Eleifend vel, consequat non, dictum porta, nulla.</td>
        </tr>
        <tr class="even">
            <td>Alex Trebek</td>
            <td>Mechanic</td>
            <td>01/09/2016</td>
            <td>00345234225</td>
            <td>Dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
        </tr>
        <tr class="odd">
            <td>Chuck Woolery</td>
            <td>Makeup</td>
            <td>01/19/1978</td>
            <td>4322343223</td>
            <td>Eleifend vel.</td>
        </tr>
        <tr class="even">
            <td>Bob Eubanks</td>
            <td>Sales</td>
            <td>12/09/1999</td>
            <td>003455</td>
            <td>Dui purus, eleifend vel, consequat non, dictum porta, nulla. Dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
        </tr>
        <tr class="odd">
            <td>Regis Philbin</td>
            <td>Intern</td>
            <td>01/19/2013</td>
            <td>43223</td>
            <td>Eleifend vel, consequat non, dictum porta, nulla.</td>
        </tr>
        </tbody>
    </table>

    <p><strong>Narrow Table:</strong></p>
    <table class="sticky-enabled sticky-table">
        <thead class="tableHeader-processed">
        <tr>
            <th>Name</th>
            <th>Title of Employee within Company</th>
        </tr>
        </thead>
        <tbody>
        <tr class="odd">
            <td>Bob Barker</td>
            <td>Web Developer</td>
        </tr>
        <tr class="even">
            <td>Pat Sajak</td>
            <td>Concierge</td>
        </tr>
        <tr class="odd">
            <td>Steve Harvey</td>
            <td>Consultant</td>
        </tr>
        <tr class="even">
            <td>Alex Trebek</td>
            <td>Mechanic</td>
        </tr>
        <tr class="odd">
            <td>Chuck Woolery</td>
            <td>Makeup</td>
        </tr>
        <tr class="even">
            <td>Bob Eubanks</td>
            <td>Sales</td>
        </tr>
        <tr class="odd">
            <td>Regis Philbin</td>
            <td>Intern</td>
        </tr>
        </tbody>
    </table>

    <p><strong>Long Table:</strong></p>
    <table class="sticky-enabled sticky-table responsive">
        <thead class="tableHeader-processed">
        <tr>
            <th>Name</th>
            <th>Title of Employee within Company</th>
            <th>Hire Date</th>
            <th>Birthday</th>
            <th>Favorite Color</th>
            <th>Lucky Number</th>
            <th>Number</th>
            <th>Description</th>
            <th>Random Column Heading</th>
            <th>Random Column Heading</th>
            <th>Random Column Heading</th>
        </tr>
        </thead>
        <tbody>
        <tr class="odd">
            <td>Bob Barker</td>
            <td>Web Developer</td>
            <td>05/19/2014</td>
            <td>05/19/2014</td>
            <td>red</td>
            <td>7</td>
            <td>00234</td>
            <td>Nulla dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
            <td>Random Value</td>
            <td>Random Value</td>
            <td>Random Value</td>
        </tr>
        <tr class="even">
            <td>Pat Sajak</td>
            <td>Concierge</td>
            <td>02/24/2011</td>
            <td>05/19/2014</td>
            <td>yellow</td>
            <td>7</td>
            <td>003455</td>
            <td>Dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
            <td>Random Value</td>
            <td>Random Value</td>
            <td>Random Value</td>
        </tr>
        <tr class="odd">
            <td>Steve Harvey</td>
            <td>Consultant</td>
            <td>10/19/2013</td>
            <td>05/19/2014</td>
            <td>green</td>
            <td>7</td>
            <td>43223</td>
            <td>Eleifend vel, consequat non, dictum porta, nulla. Eleifend vel, consequat non, dictum porta, nulla. Eleifend vel, consequat non, dictum porta, nulla.</td>
            <td>Random Value</td>
            <td>Random Value</td>
            <td>Random Value</td>
        </tr>
        <tr class="even">
            <td>Alex Trebek</td>
            <td>Mechanic</td>
            <td>01/09/2016</td>
            <td>05/19/2014</td>
            <td>purple</td>
            <td>7</td>
            <td>00345234225</td>
            <td>Dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
            <td>Random Value</td>
            <td>Random Value</td>
            <td>Random Value</td>
        </tr>
        </tbody>
    </table>
</div>

File

templates/includes/table.html.twig
View source
  1. <a name="table"></a>
  2. <h3 class="simple-styleguide--sectionhead">{{ default_pattern }}</h3>
  3. <div class="simple-styleguide">
  4. <p><strong>Normal Table:</strong></p>
  5. <table class="sticky-enabled sticky-table">
  6. <thead class="tableHeader-processed">
  7. <tr>
  8. <th>Name</th>
  9. <th>Title of Employee within Company</th>
  10. <th>Hire Date</th>
  11. <th>Number</th>
  12. <th>Description</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. <tr class="odd">
  17. <td>Bob Barker</td>
  18. <td>Web Developer</td>
  19. <td>05/19/2014</td>
  20. <td>00234</td>
  21. <td>Nulla dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
  22. </tr>
  23. <tr class="even">
  24. <td>Pat Sajak</td>
  25. <td>Concierge</td>
  26. <td>02/24/2011</td>
  27. <td>003455</td>
  28. <td>Dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
  29. </tr>
  30. <tr class="odd">
  31. <td>Steve Harvey</td>
  32. <td>Consultant</td>
  33. <td>10/19/2013</td>
  34. <td>43223</td>
  35. <td>Eleifend vel, consequat non, dictum porta, nulla. Eleifend vel, consequat non, dictum porta, nulla. Eleifend vel, consequat non, dictum porta, nulla.</td>
  36. </tr>
  37. <tr class="even">
  38. <td>Alex Trebek</td>
  39. <td>Mechanic</td>
  40. <td>01/09/2016</td>
  41. <td>00345234225</td>
  42. <td>Dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
  43. </tr>
  44. <tr class="odd">
  45. <td>Chuck Woolery</td>
  46. <td>Makeup</td>
  47. <td>01/19/1978</td>
  48. <td>4322343223</td>
  49. <td>Eleifend vel.</td>
  50. </tr>
  51. <tr class="even">
  52. <td>Bob Eubanks</td>
  53. <td>Sales</td>
  54. <td>12/09/1999</td>
  55. <td>003455</td>
  56. <td>Dui purus, eleifend vel, consequat non, dictum porta, nulla. Dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
  57. </tr>
  58. <tr class="odd">
  59. <td>Regis Philbin</td>
  60. <td>Intern</td>
  61. <td>01/19/2013</td>
  62. <td>43223</td>
  63. <td>Eleifend vel, consequat non, dictum porta, nulla.</td>
  64. </tr>
  65. </tbody>
  66. </table>
  67. <p><strong>Narrow Table:</strong></p>
  68. <table class="sticky-enabled sticky-table">
  69. <thead class="tableHeader-processed">
  70. <tr>
  71. <th>Name</th>
  72. <th>Title of Employee within Company</th>
  73. </tr>
  74. </thead>
  75. <tbody>
  76. <tr class="odd">
  77. <td>Bob Barker</td>
  78. <td>Web Developer</td>
  79. </tr>
  80. <tr class="even">
  81. <td>Pat Sajak</td>
  82. <td>Concierge</td>
  83. </tr>
  84. <tr class="odd">
  85. <td>Steve Harvey</td>
  86. <td>Consultant</td>
  87. </tr>
  88. <tr class="even">
  89. <td>Alex Trebek</td>
  90. <td>Mechanic</td>
  91. </tr>
  92. <tr class="odd">
  93. <td>Chuck Woolery</td>
  94. <td>Makeup</td>
  95. </tr>
  96. <tr class="even">
  97. <td>Bob Eubanks</td>
  98. <td>Sales</td>
  99. </tr>
  100. <tr class="odd">
  101. <td>Regis Philbin</td>
  102. <td>Intern</td>
  103. </tr>
  104. </tbody>
  105. </table>
  106. <p><strong>Long Table:</strong></p>
  107. <table class="sticky-enabled sticky-table responsive">
  108. <thead class="tableHeader-processed">
  109. <tr>
  110. <th>Name</th>
  111. <th>Title of Employee within Company</th>
  112. <th>Hire Date</th>
  113. <th>Birthday</th>
  114. <th>Favorite Color</th>
  115. <th>Lucky Number</th>
  116. <th>Number</th>
  117. <th>Description</th>
  118. <th>Random Column Heading</th>
  119. <th>Random Column Heading</th>
  120. <th>Random Column Heading</th>
  121. </tr>
  122. </thead>
  123. <tbody>
  124. <tr class="odd">
  125. <td>Bob Barker</td>
  126. <td>Web Developer</td>
  127. <td>05/19/2014</td>
  128. <td>05/19/2014</td>
  129. <td>red</td>
  130. <td>7</td>
  131. <td>00234</td>
  132. <td>Nulla dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
  133. <td>Random Value</td>
  134. <td>Random Value</td>
  135. <td>Random Value</td>
  136. </tr>
  137. <tr class="even">
  138. <td>Pat Sajak</td>
  139. <td>Concierge</td>
  140. <td>02/24/2011</td>
  141. <td>05/19/2014</td>
  142. <td>yellow</td>
  143. <td>7</td>
  144. <td>003455</td>
  145. <td>Dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
  146. <td>Random Value</td>
  147. <td>Random Value</td>
  148. <td>Random Value</td>
  149. </tr>
  150. <tr class="odd">
  151. <td>Steve Harvey</td>
  152. <td>Consultant</td>
  153. <td>10/19/2013</td>
  154. <td>05/19/2014</td>
  155. <td>green</td>
  156. <td>7</td>
  157. <td>43223</td>
  158. <td>Eleifend vel, consequat non, dictum porta, nulla. Eleifend vel, consequat non, dictum porta, nulla. Eleifend vel, consequat non, dictum porta, nulla.</td>
  159. <td>Random Value</td>
  160. <td>Random Value</td>
  161. <td>Random Value</td>
  162. </tr>
  163. <tr class="even">
  164. <td>Alex Trebek</td>
  165. <td>Mechanic</td>
  166. <td>01/09/2016</td>
  167. <td>05/19/2014</td>
  168. <td>purple</td>
  169. <td>7</td>
  170. <td>00345234225</td>
  171. <td>Dui purus, eleifend vel, consequat non, dictum porta, nulla.</td>
  172. <td>Random Value</td>
  173. <td>Random Value</td>
  174. <td>Random Value</td>
  175. </tr>
  176. </tbody>
  177. </table>
  178. </div>