new.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  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. <title>Responsive example - `new` constructor</title>
  8. <link rel="stylesheet" type="text/css" href="../../../../media/css/jquery.dataTables.css">
  9. <link rel="stylesheet" type="text/css" href="../../css/dataTables.responsive.css">
  10. <link rel="stylesheet" type="text/css" href="../../../../examples/resources/syntax/shCore.css">
  11. <link rel="stylesheet" type="text/css" href="../../../../examples/resources/demo.css">
  12. <style type="text/css" class="init">
  13. div.container { max-width: 1200px }
  14. </style>
  15. <script type="text/javascript" language="javascript" src="../../../../media/js/jquery.js"></script>
  16. <script type="text/javascript" language="javascript" src="../../../../media/js/jquery.dataTables.js"></script>
  17. <script type="text/javascript" language="javascript" src="../../js/dataTables.responsive.js"></script>
  18. <script type="text/javascript" language="javascript" src="../../../../examples/resources/syntax/shCore.js"></script>
  19. <script type="text/javascript" language="javascript" src="../../../../examples/resources/demo.js"></script>
  20. <script type="text/javascript" language="javascript" class="init">
  21. $(document).ready(function() {
  22. var table = $('#example').DataTable();
  23. new $.fn.dataTable.Responsive( table );
  24. } );
  25. </script>
  26. </head>
  27. <body class="dt-example">
  28. <div class="container">
  29. <section>
  30. <h1>Responsive example <span>`new` constructor</span></h1>
  31. <div class="info">
  32. <p>Responsive will automatically detect new DataTable instances being created on a page and initialise itself if it find the <a href=
  33. "//datatables.net/extensions/responsive/reference/option/responsive"><code class="option" title=
  34. "Responsive initialisation option">responsive<span>R</span></code></a> option or <code>responsive</code> class name on the table, as shown in the other
  35. examples.</p>
  36. <p>The third way of initialising Responsive is manually creating a new instance using the <code>$.fn.dataTable.Responsive</code> class, as shown in this example
  37. (the other two methods are provided using this constructor in a <a href="//datatables.net/reference/event/init"><code class="event" title=
  38. "DataTables event">init<span>DT</span></code></a> event handler!).</p>
  39. </div>
  40. <table id="example" class="display nowrap" cellspacing="0" width="100%">
  41. <thead>
  42. <tr>
  43. <th>First name</th>
  44. <th>Last name</th>
  45. <th>Position</th>
  46. <th>Office</th>
  47. <th>Age</th>
  48. <th>Start date</th>
  49. <th>Salary</th>
  50. <th>Extn.</th>
  51. <th>E-mail</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. <tr>
  56. <td>Tiger</td>
  57. <td>Nixon</td>
  58. <td>System Architect</td>
  59. <td>Edinburgh</td>
  60. <td>61</td>
  61. <td>2011/04/25</td>
  62. <td>$320,800</td>
  63. <td>5421</td>
  64. <td>t.nixon@datatables.net</td>
  65. </tr>
  66. <tr>
  67. <td>Garrett</td>
  68. <td>Winters</td>
  69. <td>Accountant</td>
  70. <td>Tokyo</td>
  71. <td>63</td>
  72. <td>2011/07/25</td>
  73. <td>$170,750</td>
  74. <td>8422</td>
  75. <td>g.winters@datatables.net</td>
  76. </tr>
  77. <tr>
  78. <td>Ashton</td>
  79. <td>Cox</td>
  80. <td>Junior Technical Author</td>
  81. <td>San Francisco</td>
  82. <td>66</td>
  83. <td>2009/01/12</td>
  84. <td>$86,000</td>
  85. <td>1562</td>
  86. <td>a.cox@datatables.net</td>
  87. </tr>
  88. <tr>
  89. <td>Cedric</td>
  90. <td>Kelly</td>
  91. <td>Senior Javascript Developer</td>
  92. <td>Edinburgh</td>
  93. <td>22</td>
  94. <td>2012/03/29</td>
  95. <td>$433,060</td>
  96. <td>6224</td>
  97. <td>c.kelly@datatables.net</td>
  98. </tr>
  99. <tr>
  100. <td>Airi</td>
  101. <td>Satou</td>
  102. <td>Accountant</td>
  103. <td>Tokyo</td>
  104. <td>33</td>
  105. <td>2008/11/28</td>
  106. <td>$162,700</td>
  107. <td>5407</td>
  108. <td>a.satou@datatables.net</td>
  109. </tr>
  110. <tr>
  111. <td>Brielle</td>
  112. <td>Williamson</td>
  113. <td>Integration Specialist</td>
  114. <td>New York</td>
  115. <td>61</td>
  116. <td>2012/12/02</td>
  117. <td>$372,000</td>
  118. <td>4804</td>
  119. <td>b.williamson@datatables.net</td>
  120. </tr>
  121. <tr>
  122. <td>Herrod</td>
  123. <td>Chandler</td>
  124. <td>Sales Assistant</td>
  125. <td>San Francisco</td>
  126. <td>59</td>
  127. <td>2012/08/06</td>
  128. <td>$137,500</td>
  129. <td>9608</td>
  130. <td>h.chandler@datatables.net</td>
  131. </tr>
  132. <tr>
  133. <td>Rhona</td>
  134. <td>Davidson</td>
  135. <td>Integration Specialist</td>
  136. <td>Tokyo</td>
  137. <td>55</td>
  138. <td>2010/10/14</td>
  139. <td>$327,900</td>
  140. <td>6200</td>
  141. <td>r.davidson@datatables.net</td>
  142. </tr>
  143. <tr>
  144. <td>Colleen</td>
  145. <td>Hurst</td>
  146. <td>Javascript Developer</td>
  147. <td>San Francisco</td>
  148. <td>39</td>
  149. <td>2009/09/15</td>
  150. <td>$205,500</td>
  151. <td>2360</td>
  152. <td>c.hurst@datatables.net</td>
  153. </tr>
  154. <tr>
  155. <td>Sonya</td>
  156. <td>Frost</td>
  157. <td>Software Engineer</td>
  158. <td>Edinburgh</td>
  159. <td>23</td>
  160. <td>2008/12/13</td>
  161. <td>$103,600</td>
  162. <td>1667</td>
  163. <td>s.frost@datatables.net</td>
  164. </tr>
  165. <tr>
  166. <td>Jena</td>
  167. <td>Gaines</td>
  168. <td>Office Manager</td>
  169. <td>London</td>
  170. <td>30</td>
  171. <td>2008/12/19</td>
  172. <td>$90,560</td>
  173. <td>3814</td>
  174. <td>j.gaines@datatables.net</td>
  175. </tr>
  176. <tr>
  177. <td>Quinn</td>
  178. <td>Flynn</td>
  179. <td>Support Lead</td>
  180. <td>Edinburgh</td>
  181. <td>22</td>
  182. <td>2013/03/03</td>
  183. <td>$342,000</td>
  184. <td>9497</td>
  185. <td>q.flynn@datatables.net</td>
  186. </tr>
  187. <tr>
  188. <td>Charde</td>
  189. <td>Marshall</td>
  190. <td>Regional Director</td>
  191. <td>San Francisco</td>
  192. <td>36</td>
  193. <td>2008/10/16</td>
  194. <td>$470,600</td>
  195. <td>6741</td>
  196. <td>c.marshall@datatables.net</td>
  197. </tr>
  198. <tr>
  199. <td>Haley</td>
  200. <td>Kennedy</td>
  201. <td>Senior Marketing Designer</td>
  202. <td>London</td>
  203. <td>43</td>
  204. <td>2012/12/18</td>
  205. <td>$313,500</td>
  206. <td>3597</td>
  207. <td>h.kennedy@datatables.net</td>
  208. </tr>
  209. <tr>
  210. <td>Tatyana</td>
  211. <td>Fitzpatrick</td>
  212. <td>Regional Director</td>
  213. <td>London</td>
  214. <td>19</td>
  215. <td>2010/03/17</td>
  216. <td>$385,750</td>
  217. <td>1965</td>
  218. <td>t.fitzpatrick@datatables.net</td>
  219. </tr>
  220. <tr>
  221. <td>Michael</td>
  222. <td>Silva</td>
  223. <td>Marketing Designer</td>
  224. <td>London</td>
  225. <td>66</td>
  226. <td>2012/11/27</td>
  227. <td>$198,500</td>
  228. <td>1581</td>
  229. <td>m.silva@datatables.net</td>
  230. </tr>
  231. <tr>
  232. <td>Paul</td>
  233. <td>Byrd</td>
  234. <td>Chief Financial Officer (CFO)</td>
  235. <td>New York</td>
  236. <td>64</td>
  237. <td>2010/06/09</td>
  238. <td>$725,000</td>
  239. <td>3059</td>
  240. <td>p.byrd@datatables.net</td>
  241. </tr>
  242. <tr>
  243. <td>Gloria</td>
  244. <td>Little</td>
  245. <td>Systems Administrator</td>
  246. <td>New York</td>
  247. <td>59</td>
  248. <td>2009/04/10</td>
  249. <td>$237,500</td>
  250. <td>1721</td>
  251. <td>g.little@datatables.net</td>
  252. </tr>
  253. <tr>
  254. <td>Bradley</td>
  255. <td>Greer</td>
  256. <td>Software Engineer</td>
  257. <td>London</td>
  258. <td>41</td>
  259. <td>2012/10/13</td>
  260. <td>$132,000</td>
  261. <td>2558</td>
  262. <td>b.greer@datatables.net</td>
  263. </tr>
  264. <tr>
  265. <td>Dai</td>
  266. <td>Rios</td>
  267. <td>Personnel Lead</td>
  268. <td>Edinburgh</td>
  269. <td>35</td>
  270. <td>2012/09/26</td>
  271. <td>$217,500</td>
  272. <td>2290</td>
  273. <td>d.rios@datatables.net</td>
  274. </tr>
  275. <tr>
  276. <td>Jenette</td>
  277. <td>Caldwell</td>
  278. <td>Development Lead</td>
  279. <td>New York</td>
  280. <td>30</td>
  281. <td>2011/09/03</td>
  282. <td>$345,000</td>
  283. <td>1937</td>
  284. <td>j.caldwell@datatables.net</td>
  285. </tr>
  286. <tr>
  287. <td>Yuri</td>
  288. <td>Berry</td>
  289. <td>Chief Marketing Officer (CMO)</td>
  290. <td>New York</td>
  291. <td>40</td>
  292. <td>2009/06/25</td>
  293. <td>$675,000</td>
  294. <td>6154</td>
  295. <td>y.berry@datatables.net</td>
  296. </tr>
  297. <tr>
  298. <td>Caesar</td>
  299. <td>Vance</td>
  300. <td>Pre-Sales Support</td>
  301. <td>New York</td>
  302. <td>21</td>
  303. <td>2011/12/12</td>
  304. <td>$106,450</td>
  305. <td>8330</td>
  306. <td>c.vance@datatables.net</td>
  307. </tr>
  308. <tr>
  309. <td>Doris</td>
  310. <td>Wilder</td>
  311. <td>Sales Assistant</td>
  312. <td>Sidney</td>
  313. <td>23</td>
  314. <td>2010/09/20</td>
  315. <td>$85,600</td>
  316. <td>3023</td>
  317. <td>d.wilder@datatables.net</td>
  318. </tr>
  319. <tr>
  320. <td>Angelica</td>
  321. <td>Ramos</td>
  322. <td>Chief Executive Officer (CEO)</td>
  323. <td>London</td>
  324. <td>47</td>
  325. <td>2009/10/09</td>
  326. <td>$1,200,000</td>
  327. <td>5797</td>
  328. <td>a.ramos@datatables.net</td>
  329. </tr>
  330. <tr>
  331. <td>Gavin</td>
  332. <td>Joyce</td>
  333. <td>Developer</td>
  334. <td>Edinburgh</td>
  335. <td>42</td>
  336. <td>2010/12/22</td>
  337. <td>$92,575</td>
  338. <td>8822</td>
  339. <td>g.joyce@datatables.net</td>
  340. </tr>
  341. <tr>
  342. <td>Jennifer</td>
  343. <td>Chang</td>
  344. <td>Regional Director</td>
  345. <td>Singapore</td>
  346. <td>28</td>
  347. <td>2010/11/14</td>
  348. <td>$357,650</td>
  349. <td>9239</td>
  350. <td>j.chang@datatables.net</td>
  351. </tr>
  352. <tr>
  353. <td>Brenden</td>
  354. <td>Wagner</td>
  355. <td>Software Engineer</td>
  356. <td>San Francisco</td>
  357. <td>28</td>
  358. <td>2011/06/07</td>
  359. <td>$206,850</td>
  360. <td>1314</td>
  361. <td>b.wagner@datatables.net</td>
  362. </tr>
  363. <tr>
  364. <td>Fiona</td>
  365. <td>Green</td>
  366. <td>Chief Operating Officer (COO)</td>
  367. <td>San Francisco</td>
  368. <td>48</td>
  369. <td>2010/03/11</td>
  370. <td>$850,000</td>
  371. <td>2947</td>
  372. <td>f.green@datatables.net</td>
  373. </tr>
  374. <tr>
  375. <td>Shou</td>
  376. <td>Itou</td>
  377. <td>Regional Marketing</td>
  378. <td>Tokyo</td>
  379. <td>20</td>
  380. <td>2011/08/14</td>
  381. <td>$163,000</td>
  382. <td>8899</td>
  383. <td>s.itou@datatables.net</td>
  384. </tr>
  385. <tr>
  386. <td>Michelle</td>
  387. <td>House</td>
  388. <td>Integration Specialist</td>
  389. <td>Sidney</td>
  390. <td>37</td>
  391. <td>2011/06/02</td>
  392. <td>$95,400</td>
  393. <td>2769</td>
  394. <td>m.house@datatables.net</td>
  395. </tr>
  396. <tr>
  397. <td>Suki</td>
  398. <td>Burks</td>
  399. <td>Developer</td>
  400. <td>London</td>
  401. <td>53</td>
  402. <td>2009/10/22</td>
  403. <td>$114,500</td>
  404. <td>6832</td>
  405. <td>s.burks@datatables.net</td>
  406. </tr>
  407. <tr>
  408. <td>Prescott</td>
  409. <td>Bartlett</td>
  410. <td>Technical Author</td>
  411. <td>London</td>
  412. <td>27</td>
  413. <td>2011/05/07</td>
  414. <td>$145,000</td>
  415. <td>3606</td>
  416. <td>p.bartlett@datatables.net</td>
  417. </tr>
  418. <tr>
  419. <td>Gavin</td>
  420. <td>Cortez</td>
  421. <td>Team Leader</td>
  422. <td>San Francisco</td>
  423. <td>22</td>
  424. <td>2008/10/26</td>
  425. <td>$235,500</td>
  426. <td>2860</td>
  427. <td>g.cortez@datatables.net</td>
  428. </tr>
  429. <tr>
  430. <td>Martena</td>
  431. <td>Mccray</td>
  432. <td>Post-Sales support</td>
  433. <td>Edinburgh</td>
  434. <td>46</td>
  435. <td>2011/03/09</td>
  436. <td>$324,050</td>
  437. <td>8240</td>
  438. <td>m.mccray@datatables.net</td>
  439. </tr>
  440. <tr>
  441. <td>Unity</td>
  442. <td>Butler</td>
  443. <td>Marketing Designer</td>
  444. <td>San Francisco</td>
  445. <td>47</td>
  446. <td>2009/12/09</td>
  447. <td>$85,675</td>
  448. <td>5384</td>
  449. <td>u.butler@datatables.net</td>
  450. </tr>
  451. <tr>
  452. <td>Howard</td>
  453. <td>Hatfield</td>
  454. <td>Office Manager</td>
  455. <td>San Francisco</td>
  456. <td>51</td>
  457. <td>2008/12/16</td>
  458. <td>$164,500</td>
  459. <td>7031</td>
  460. <td>h.hatfield@datatables.net</td>
  461. </tr>
  462. <tr>
  463. <td>Hope</td>
  464. <td>Fuentes</td>
  465. <td>Secretary</td>
  466. <td>San Francisco</td>
  467. <td>41</td>
  468. <td>2010/02/12</td>
  469. <td>$109,850</td>
  470. <td>6318</td>
  471. <td>h.fuentes@datatables.net</td>
  472. </tr>
  473. <tr>
  474. <td>Vivian</td>
  475. <td>Harrell</td>
  476. <td>Financial Controller</td>
  477. <td>San Francisco</td>
  478. <td>62</td>
  479. <td>2009/02/14</td>
  480. <td>$452,500</td>
  481. <td>9422</td>
  482. <td>v.harrell@datatables.net</td>
  483. </tr>
  484. <tr>
  485. <td>Timothy</td>
  486. <td>Mooney</td>
  487. <td>Office Manager</td>
  488. <td>London</td>
  489. <td>37</td>
  490. <td>2008/12/11</td>
  491. <td>$136,200</td>
  492. <td>7580</td>
  493. <td>t.mooney@datatables.net</td>
  494. </tr>
  495. <tr>
  496. <td>Jackson</td>
  497. <td>Bradshaw</td>
  498. <td>Director</td>
  499. <td>New York</td>
  500. <td>65</td>
  501. <td>2008/09/26</td>
  502. <td>$645,750</td>
  503. <td>1042</td>
  504. <td>j.bradshaw@datatables.net</td>
  505. </tr>
  506. <tr>
  507. <td>Olivia</td>
  508. <td>Liang</td>
  509. <td>Support Engineer</td>
  510. <td>Singapore</td>
  511. <td>64</td>
  512. <td>2011/02/03</td>
  513. <td>$234,500</td>
  514. <td>2120</td>
  515. <td>o.liang@datatables.net</td>
  516. </tr>
  517. <tr>
  518. <td>Bruno</td>
  519. <td>Nash</td>
  520. <td>Software Engineer</td>
  521. <td>London</td>
  522. <td>38</td>
  523. <td>2011/05/03</td>
  524. <td>$163,500</td>
  525. <td>6222</td>
  526. <td>b.nash@datatables.net</td>
  527. </tr>
  528. <tr>
  529. <td>Sakura</td>
  530. <td>Yamamoto</td>
  531. <td>Support Engineer</td>
  532. <td>Tokyo</td>
  533. <td>37</td>
  534. <td>2009/08/19</td>
  535. <td>$139,575</td>
  536. <td>9383</td>
  537. <td>s.yamamoto@datatables.net</td>
  538. </tr>
  539. <tr>
  540. <td>Thor</td>
  541. <td>Walton</td>
  542. <td>Developer</td>
  543. <td>New York</td>
  544. <td>61</td>
  545. <td>2013/08/11</td>
  546. <td>$98,540</td>
  547. <td>8327</td>
  548. <td>t.walton@datatables.net</td>
  549. </tr>
  550. <tr>
  551. <td>Finn</td>
  552. <td>Camacho</td>
  553. <td>Support Engineer</td>
  554. <td>San Francisco</td>
  555. <td>47</td>
  556. <td>2009/07/07</td>
  557. <td>$87,500</td>
  558. <td>2927</td>
  559. <td>f.camacho@datatables.net</td>
  560. </tr>
  561. <tr>
  562. <td>Serge</td>
  563. <td>Baldwin</td>
  564. <td>Data Coordinator</td>
  565. <td>Singapore</td>
  566. <td>64</td>
  567. <td>2012/04/09</td>
  568. <td>$138,575</td>
  569. <td>8352</td>
  570. <td>s.baldwin@datatables.net</td>
  571. </tr>
  572. <tr>
  573. <td>Zenaida</td>
  574. <td>Frank</td>
  575. <td>Software Engineer</td>
  576. <td>New York</td>
  577. <td>63</td>
  578. <td>2010/01/04</td>
  579. <td>$125,250</td>
  580. <td>7439</td>
  581. <td>z.frank@datatables.net</td>
  582. </tr>
  583. <tr>
  584. <td>Zorita</td>
  585. <td>Serrano</td>
  586. <td>Software Engineer</td>
  587. <td>San Francisco</td>
  588. <td>56</td>
  589. <td>2012/06/01</td>
  590. <td>$115,000</td>
  591. <td>4389</td>
  592. <td>z.serrano@datatables.net</td>
  593. </tr>
  594. <tr>
  595. <td>Jennifer</td>
  596. <td>Acosta</td>
  597. <td>Junior Javascript Developer</td>
  598. <td>Edinburgh</td>
  599. <td>43</td>
  600. <td>2013/02/01</td>
  601. <td>$75,650</td>
  602. <td>3431</td>
  603. <td>j.acosta@datatables.net</td>
  604. </tr>
  605. <tr>
  606. <td>Cara</td>
  607. <td>Stevens</td>
  608. <td>Sales Assistant</td>
  609. <td>New York</td>
  610. <td>46</td>
  611. <td>2011/12/06</td>
  612. <td>$145,600</td>
  613. <td>3990</td>
  614. <td>c.stevens@datatables.net</td>
  615. </tr>
  616. <tr>
  617. <td>Hermione</td>
  618. <td>Butler</td>
  619. <td>Regional Director</td>
  620. <td>London</td>
  621. <td>47</td>
  622. <td>2011/03/21</td>
  623. <td>$356,250</td>
  624. <td>1016</td>
  625. <td>h.butler@datatables.net</td>
  626. </tr>
  627. <tr>
  628. <td>Lael</td>
  629. <td>Greer</td>
  630. <td>Systems Administrator</td>
  631. <td>London</td>
  632. <td>21</td>
  633. <td>2009/02/27</td>
  634. <td>$103,500</td>
  635. <td>6733</td>
  636. <td>l.greer@datatables.net</td>
  637. </tr>
  638. <tr>
  639. <td>Jonas</td>
  640. <td>Alexander</td>
  641. <td>Developer</td>
  642. <td>San Francisco</td>
  643. <td>30</td>
  644. <td>2010/07/14</td>
  645. <td>$86,500</td>
  646. <td>8196</td>
  647. <td>j.alexander@datatables.net</td>
  648. </tr>
  649. <tr>
  650. <td>Shad</td>
  651. <td>Decker</td>
  652. <td>Regional Director</td>
  653. <td>Edinburgh</td>
  654. <td>51</td>
  655. <td>2008/11/13</td>
  656. <td>$183,000</td>
  657. <td>6373</td>
  658. <td>s.decker@datatables.net</td>
  659. </tr>
  660. <tr>
  661. <td>Michael</td>
  662. <td>Bruce</td>
  663. <td>Javascript Developer</td>
  664. <td>Singapore</td>
  665. <td>29</td>
  666. <td>2011/06/27</td>
  667. <td>$183,000</td>
  668. <td>5384</td>
  669. <td>m.bruce@datatables.net</td>
  670. </tr>
  671. <tr>
  672. <td>Donna</td>
  673. <td>Snider</td>
  674. <td>Customer Support</td>
  675. <td>New York</td>
  676. <td>27</td>
  677. <td>2011/01/25</td>
  678. <td>$112,000</td>
  679. <td>4226</td>
  680. <td>d.snider@datatables.net</td>
  681. </tr>
  682. </tbody>
  683. </table>
  684. <ul class="tabs">
  685. <li class="active">Javascript</li>
  686. <li>HTML</li>
  687. <li>CSS</li>
  688. <li>Ajax</li>
  689. <li>Server-side script</li>
  690. </ul>
  691. <div class="tabs">
  692. <div class="js">
  693. <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
  694. var table = $('#example').DataTable();
  695. new $.fn.dataTable.Responsive( table );
  696. } );</code>
  697. <p>In addition to the above code, the following Javascript library files are loaded for use in this example:</p>
  698. <ul>
  699. <li><a href="../../../../media/js/jquery.js">../../../../media/js/jquery.js</a></li>
  700. <li><a href="../../../../media/js/jquery.dataTables.js">../../../../media/js/jquery.dataTables.js</a></li>
  701. <li><a href="../../js/dataTables.responsive.js">../../js/dataTables.responsive.js</a></li>
  702. </ul>
  703. </div>
  704. <div class="table">
  705. <p>The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:</p>
  706. </div>
  707. <div class="css">
  708. <div>
  709. <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
  710. additional CSS used is shown below:</p><code class="multiline language-css">div.container { max-width: 1200px }</code>
  711. </div>
  712. <p>The following CSS library files are loaded for use in this example to provide the styling of the table:</p>
  713. <ul>
  714. <li><a href="../../../../media/css/jquery.dataTables.css">../../../../media/css/jquery.dataTables.css</a></li>
  715. <li><a href="../../css/dataTables.responsive.css">../../css/dataTables.responsive.css</a></li>
  716. </ul>
  717. </div>
  718. <div class="ajax">
  719. <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
  720. loaded.</p>
  721. </div>
  722. <div class="php">
  723. <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
  724. processing scripts can be written in any language, using <a href="//datatables.net/manual/server-side">the protocol described in the DataTables
  725. documentation</a>.</p>
  726. </div>
  727. </div>
  728. </section>
  729. </div>
  730. <section>
  731. <div class="footer">
  732. <div class="gradient"></div>
  733. <div class="liner">
  734. <h2>Other examples</h2>
  735. <div class="toc">
  736. <div class="toc-group">
  737. <h3><a href="./index.html">Basic initialisation</a></h3>
  738. <ul class="toc active">
  739. <li><a href="./className.html">Class name</a></li>
  740. <li><a href="./option.html">Configuration option</a></li>
  741. <li class="active"><a href="./new.html">`new` constructor</a></li>
  742. <li><a href="./ajax.html">Ajax data</a></li>
  743. <li><a href="./default.html">Default initialisation</a></li>
  744. </ul>
  745. </div>
  746. <div class="toc-group">
  747. <h3><a href="../styling/index.html">Styling</a></h3>
  748. <ul class="toc">
  749. <li><a href="../styling/bootstrap.html">Bootstrap styling</a></li>
  750. <li><a href="../styling/foundation.html">Foundation styling</a></li>
  751. <li><a href="../styling/scrolling.html">Vertical scrolling</a></li>
  752. <li><a href="../styling/compact.html">Compact styling</a></li>
  753. </ul>
  754. </div>
  755. <div class="toc-group">
  756. <h3><a href="../display-control/index.html">Display control</a></h3>
  757. <ul class="toc">
  758. <li><a href="../display-control/auto.html">Automatic column hiding</a></li>
  759. <li><a href="../display-control/classes.html">Class control</a></li>
  760. <li><a href="../display-control/init-classes.html">Assigned class control</a></li>
  761. <li><a href="../display-control/fixedHeader.html">With FixedHeader</a></li>
  762. <li><a href="../display-control/complexHeader.html">Complex headers (rowspan / colspan)</a></li>
  763. </ul>
  764. </div>
  765. <div class="toc-group">
  766. <h3><a href="../child-rows/index.html">Child rows</a></h3>
  767. <ul class="toc">
  768. <li><a href="../child-rows/disable-child-rows.html">Disable child rows</a></li>
  769. <li><a href="../child-rows/column-control.html">Column controlled child rows</a></li>
  770. <li><a href="../child-rows/right-column.html">Column control - right</a></li>
  771. <li><a href="../child-rows/whole-row-control.html">Whole row child row control</a></li>
  772. <li><a href="../child-rows/custom-renderer.html">Custom child row renderer</a></li>
  773. </ul>
  774. </div>
  775. </div>
  776. <div class="epilogue">
  777. <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br>
  778. 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>
  779. which extend the capabilities of DataTables.</p>
  780. <p class="copyright">DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> &#169; 2007-2015<br>
  781. DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p>
  782. </div>
  783. </div>
  784. </div>
  785. </section>
  786. </body>
  787. </html>