right_column.html 21 KB

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