diff --git a/bower_components/iron-list/demo/demo1.html b/bower_components/iron-list/demo/demo1.html new file mode 100644 index 0000000..b7eb0b8 --- /dev/null +++ b/bower_components/iron-list/demo/demo1.html @@ -0,0 +1,154 @@ + + + + +
+ +Each column has an optional rendering control called columns.renderDT
which can be used to process the content of each cell before the data is used. columns.renderDT
has a
+ wide array of options available to it for rendering different types of data orthogonally (ordering, searching, display etc), but it can be used very simply to
+ manipulate the content of a cell, as shown here.
This example shows the person's age combined with their name in the first column, hiding the age column. This technique can be useful for adding links, + assigning colours based on content rules and any other form of text manipulation you require.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "columnDefs": [
+ {
+ // The `data` parameter refers to the data for the cell (defined by the
+ // `data` option, which defaults to the column being worked with, in
+ // this case `data: 0`.
+ "render": function ( data, type, row ) {
+ return data +' ('+ row[3]+')';
+ },
+ "targets": 0
+ },
+ { "visible": false, "targets": [ 3 ] }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Complex headers (using colspan / rowspan) can be used to group columns of similar information in DataTables, creating a very powerful visual effect.
+ +In addition to the basic behaviour, DataTables can also take colspan and rowspans into account when working with hidden columns. The colspan and rowspan
+ attributes for each cell are automatically calculated and rendered on the page for you. This allows the columns.visibleDT
option
+ and column().visible()DT
method
+ to take into account rowspan / colspan cells, drawing the header correctly.
Note that each column must have at least one unique cell (i.e. a cell without colspan) so DataTables can use that cell to detect the column and use it to apply + ordering.
+ +The example below shows a header spanning multiple cells over the contact information, with one of the columns that the span covers being hidden.
+Name | +HR Information | +Contact | +|||
---|---|---|---|---|---|
Position | +Salary | +Office | +Extn. | +||
Name | +Position | +Salary | +Office | +Extn. | +|
Tiger Nixon | +System Architect | +$320,800 | +Edinburgh | +5421 | +t.nixon@datatables.net | +
Garrett Winters | +Accountant | +$170,750 | +Tokyo | +8422 | +g.winters@datatables.net | +
Ashton Cox | +Junior Technical Author | +$86,000 | +San Francisco | +1562 | +a.cox@datatables.net | +
Cedric Kelly | +Senior Javascript Developer | +$433,060 | +Edinburgh | +6224 | +c.kelly@datatables.net | +
Airi Satou | +Accountant | +$162,700 | +Tokyo | +5407 | +a.satou@datatables.net | +
Brielle Williamson | +Integration Specialist | +$372,000 | +New York | +4804 | +b.williamson@datatables.net | +
Herrod Chandler | +Sales Assistant | +$137,500 | +San Francisco | +9608 | +h.chandler@datatables.net | +
Rhona Davidson | +Integration Specialist | +$327,900 | +Tokyo | +6200 | +r.davidson@datatables.net | +
Colleen Hurst | +Javascript Developer | +$205,500 | +San Francisco | +2360 | +c.hurst@datatables.net | +
Sonya Frost | +Software Engineer | +$103,600 | +Edinburgh | +1667 | +s.frost@datatables.net | +
Jena Gaines | +Office Manager | +$90,560 | +London | +3814 | +j.gaines@datatables.net | +
Quinn Flynn | +Support Lead | +$342,000 | +Edinburgh | +9497 | +q.flynn@datatables.net | +
Charde Marshall | +Regional Director | +$470,600 | +San Francisco | +6741 | +c.marshall@datatables.net | +
Haley Kennedy | +Senior Marketing Designer | +$313,500 | +London | +3597 | +h.kennedy@datatables.net | +
Tatyana Fitzpatrick | +Regional Director | +$385,750 | +London | +1965 | +t.fitzpatrick@datatables.net | +
Michael Silva | +Marketing Designer | +$198,500 | +London | +1581 | +m.silva@datatables.net | +
Paul Byrd | +Chief Financial Officer (CFO) | +$725,000 | +New York | +3059 | +p.byrd@datatables.net | +
Gloria Little | +Systems Administrator | +$237,500 | +New York | +1721 | +g.little@datatables.net | +
Bradley Greer | +Software Engineer | +$132,000 | +London | +2558 | +b.greer@datatables.net | +
Dai Rios | +Personnel Lead | +$217,500 | +Edinburgh | +2290 | +d.rios@datatables.net | +
Jenette Caldwell | +Development Lead | +$345,000 | +New York | +1937 | +j.caldwell@datatables.net | +
Yuri Berry | +Chief Marketing Officer (CMO) | +$675,000 | +New York | +6154 | +y.berry@datatables.net | +
Caesar Vance | +Pre-Sales Support | +$106,450 | +New York | +8330 | +c.vance@datatables.net | +
Doris Wilder | +Sales Assistant | +$85,600 | +Sidney | +3023 | +d.wilder@datatables.net | +
Angelica Ramos | +Chief Executive Officer (CEO) | +$1,200,000 | +London | +5797 | +a.ramos@datatables.net | +
Gavin Joyce | +Developer | +$92,575 | +Edinburgh | +8822 | +g.joyce@datatables.net | +
Jennifer Chang | +Regional Director | +$357,650 | +Singapore | +9239 | +j.chang@datatables.net | +
Brenden Wagner | +Software Engineer | +$206,850 | +San Francisco | +1314 | +b.wagner@datatables.net | +
Fiona Green | +Chief Operating Officer (COO) | +$850,000 | +San Francisco | +2947 | +f.green@datatables.net | +
Shou Itou | +Regional Marketing | +$163,000 | +Tokyo | +8899 | +s.itou@datatables.net | +
Michelle House | +Integration Specialist | +$95,400 | +Sidney | +2769 | +m.house@datatables.net | +
Suki Burks | +Developer | +$114,500 | +London | +6832 | +s.burks@datatables.net | +
Prescott Bartlett | +Technical Author | +$145,000 | +London | +3606 | +p.bartlett@datatables.net | +
Gavin Cortez | +Team Leader | +$235,500 | +San Francisco | +2860 | +g.cortez@datatables.net | +
Martena Mccray | +Post-Sales support | +$324,050 | +Edinburgh | +8240 | +m.mccray@datatables.net | +
Unity Butler | +Marketing Designer | +$85,675 | +San Francisco | +5384 | +u.butler@datatables.net | +
Howard Hatfield | +Office Manager | +$164,500 | +San Francisco | +7031 | +h.hatfield@datatables.net | +
Hope Fuentes | +Secretary | +$109,850 | +San Francisco | +6318 | +h.fuentes@datatables.net | +
Vivian Harrell | +Financial Controller | +$452,500 | +San Francisco | +9422 | +v.harrell@datatables.net | +
Timothy Mooney | +Office Manager | +$136,200 | +London | +7580 | +t.mooney@datatables.net | +
Jackson Bradshaw | +Director | +$645,750 | +New York | +1042 | +j.bradshaw@datatables.net | +
Olivia Liang | +Support Engineer | +$234,500 | +Singapore | +2120 | +o.liang@datatables.net | +
Bruno Nash | +Software Engineer | +$163,500 | +London | +6222 | +b.nash@datatables.net | +
Sakura Yamamoto | +Support Engineer | +$139,575 | +Tokyo | +9383 | +s.yamamoto@datatables.net | +
Thor Walton | +Developer | +$98,540 | +New York | +8327 | +t.walton@datatables.net | +
Finn Camacho | +Support Engineer | +$87,500 | +San Francisco | +2927 | +f.camacho@datatables.net | +
Serge Baldwin | +Data Coordinator | +$138,575 | +Singapore | +8352 | +s.baldwin@datatables.net | +
Zenaida Frank | +Software Engineer | +$125,250 | +New York | +7439 | +z.frank@datatables.net | +
Zorita Serrano | +Software Engineer | +$115,000 | +San Francisco | +4389 | +z.serrano@datatables.net | +
Jennifer Acosta | +Junior Javascript Developer | +$75,650 | +Edinburgh | +3431 | +j.acosta@datatables.net | +
Cara Stevens | +Sales Assistant | +$145,600 | +New York | +3990 | +c.stevens@datatables.net | +
Hermione Butler | +Regional Director | +$356,250 | +London | +1016 | +h.butler@datatables.net | +
Lael Greer | +Systems Administrator | +$103,500 | +London | +6733 | +l.greer@datatables.net | +
Jonas Alexander | +Developer | +$86,500 | +San Francisco | +8196 | +j.alexander@datatables.net | +
Shad Decker | +Regional Director | +$183,000 | +Edinburgh | +6373 | +s.decker@datatables.net | +
Michael Bruce | +Javascript Developer | +$183,000 | +Singapore | +5384 | +m.bruce@datatables.net | +
Donna Snider | +Customer Support | +$112,000 | +New York | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "columnDefs": [ {
+ "visible": false,
+ "targets": -1
+ } ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+When working with DataTables over multiple pages it is often useful to set the initialisation defaults to common values (for example you might want to set
+ domDT
to a common value so
+ all tables get the same layout). This can be done using the $.fn.dataTable.defaults
object. This object will take all of the same parameters as the
+ DataTables initialisation object, but in this case you are setting the default for all future initialisations of DataTables.
This example shows the searching and ordering features of DataTables being disabled by default, which is reflected in the table when it is initialised.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$.extend( $.fn.dataTable.defaults, {
+ "searching": false,
+ "ordering": false
+} );
+
+
+$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+As is described by the basic DOM positioning example you can use the domDT
initialisation parameter to move DataTables features around the table to where you want them. In
+ addition to this, you can also use domDT
to create multiple instances of these table controls. Simply include the feature's identification
+ letter where you want it to appear, as many times as you wish, and the controls will all sync up (note that obviously the table ('t') should be included only
+ once).
This is shown in the demo below where for four key build-in features are duplicated above and below the table.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "dom": '<"top"iflp<"clear">>rt<"bottom"iflp<"clear">>'
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
div.dataTables_length {
+ padding-left: 2em;
+ }
+ div.dataTables_length,
+ div.dataTables_filter {
+ padding-top: 0.55em;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+DataTables inserts DOM elements around the table to control DataTables features, and you can make use of this mechanism as well to insert your own custom
+ elements. In this example a div
with a class of 'toolbar' is created using domDT
, with which HTML is inserted to
+ create the toolbar. You could put whatever HTML you want into the toolbar and add event handlers etc.
For more complex features, or for creating reusable plug-ins, DataTables also has a feature plug-in API available, which can be used to create plug-ins which
+ are used in a table by a single character reference in the domDT
option (like the built in option of f
refers to
+ 'filtering input', you could have an F
option which creates your own filtering input control, custom to your app).
TableTools is a feature plug-in for DataTables which adds buttons into a toolbar for a table, which + controls such as copy to clipboard, export and custom buttons.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "dom": '<"toolbar">frtip'
+ } );
+
+ $("div.toolbar").html('<b>Custom tool bar! Text/images etc.</b>');
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
.toolbar {
+ float: left;
+}
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+DataTables fires a number of custom events which you can bind to in the standard jQuery fashion (although note that the namespace dt
must
+ be used), allowing your code to perform custom actions when these events occur.
All custom events fired by DataTables are fired with the namespace dt
in order to prevent conflicts arising with other jQuery plug-ins which also
+ fire events. The DataTables on()DT
method can
+ be used like the jQuery on()
method, but will automatically append the dt
namespace if required.
This example shows the use of the orderDT
,
+ searchDT
and pageDT
events by adding a notification that the event
+ fired to an element on the page to show that they have indeed fired.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var eventFired = function ( type ) {
+ var n = $('#demo_info')[0];
+ n.innerHTML += '<div>'+type+' event - '+new Date().getTime()+'</div>';
+ n.scrollTop = n.scrollHeight;
+ }
+
+ $('#example')
+ .on( 'order.dt', function () { eventFired( 'Order' ); } )
+ .on( 'search.dt', function () { eventFired( 'Search' ); } )
+ .on( 'page.dt', function () { eventFired( 'Page' ); } )
+ .dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Events assigned to the table can be exceptionally useful for user interaction, however you must be aware that DataTables will add and remove rows from the DOM + as they are needed (i.e. when paging only the visible elements are actually available in the DOM). As such, this can lead to the odd hiccup when working with + events.
+ +One of the best ways of dealing with this is through the use of delegated events with jQuery's on
method, as shown in this example.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+
+ $('#example tbody').on('click', 'tr', function () {
+ var name = $('td', this).eq(0).text();
+ alert( 'You clicked on '+name+'\'s row' );
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Through the use of the header and footer callback manipulation functions provided by DataTables (headerCallbackDT
and
+ footerCallbackDT
),
+ it is possible to perform some powerful and useful data manipulation functions, such as summarising data in the table.
The example below shows a footer callback being used to total the data for a column (both the visible and the hidden data) using the column().data()DT
API method and column().footer()DT
for writing the
+ value into the footer.
First name | +Last name | +Position | +Office | +Salary | +
---|---|---|---|---|
Total: | ++ | |||
Tiger | +Nixon | +System Architect | +Edinburgh | +$320,800 | +
Garrett | +Winters | +Accountant | +Tokyo | +$170,750 | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +$86,000 | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +$433,060 | +
Airi | +Satou | +Accountant | +Tokyo | +$162,700 | +
Brielle | +Williamson | +Integration Specialist | +New York | +$372,000 | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +$137,500 | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +$327,900 | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +$205,500 | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +$103,600 | +
Jena | +Gaines | +Office Manager | +London | +$90,560 | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +$342,000 | +
Charde | +Marshall | +Regional Director | +San Francisco | +$470,600 | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +$313,500 | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +$385,750 | +
Michael | +Silva | +Marketing Designer | +London | +$198,500 | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +$725,000 | +
Gloria | +Little | +Systems Administrator | +New York | +$237,500 | +
Bradley | +Greer | +Software Engineer | +London | +$132,000 | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +$217,500 | +
Jenette | +Caldwell | +Development Lead | +New York | +$345,000 | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +$675,000 | +
Caesar | +Vance | +Pre-Sales Support | +New York | +$106,450 | +
Doris | +Wilder | +Sales Assistant | +Sidney | +$85,600 | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +$1,200,000 | +
Gavin | +Joyce | +Developer | +Edinburgh | +$92,575 | +
Jennifer | +Chang | +Regional Director | +Singapore | +$357,650 | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +$206,850 | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +$850,000 | +
Shou | +Itou | +Regional Marketing | +Tokyo | +$163,000 | +
Michelle | +House | +Integration Specialist | +Sidney | +$95,400 | +
Suki | +Burks | +Developer | +London | +$114,500 | +
Prescott | +Bartlett | +Technical Author | +London | +$145,000 | +
Gavin | +Cortez | +Team Leader | +San Francisco | +$235,500 | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +$324,050 | +
Unity | +Butler | +Marketing Designer | +San Francisco | +$85,675 | +
Howard | +Hatfield | +Office Manager | +San Francisco | +$164,500 | +
Hope | +Fuentes | +Secretary | +San Francisco | +$109,850 | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +$452,500 | +
Timothy | +Mooney | +Office Manager | +London | +$136,200 | +
Jackson | +Bradshaw | +Director | +New York | +$645,750 | +
Olivia | +Liang | +Support Engineer | +Singapore | +$234,500 | +
Bruno | +Nash | +Software Engineer | +London | +$163,500 | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +$139,575 | +
Thor | +Walton | +Developer | +New York | +$98,540 | +
Finn | +Camacho | +Support Engineer | +San Francisco | +$87,500 | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +$138,575 | +
Zenaida | +Frank | +Software Engineer | +New York | +$125,250 | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +$115,000 | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +$75,650 | +
Cara | +Stevens | +Sales Assistant | +New York | +$145,600 | +
Hermione | +Butler | +Regional Director | +London | +$356,250 | +
Lael | +Greer | +Systems Administrator | +London | +$103,500 | +
Jonas | +Alexander | +Developer | +San Francisco | +$86,500 | +
Shad | +Decker | +Regional Director | +Edinburgh | +$183,000 | +
Michael | +Bruce | +Javascript Developer | +Singapore | +$183,000 | +
Donna | +Snider | +Customer Support | +New York | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "footerCallback": function ( row, data, start, end, display ) {
+ var api = this.api(), data;
+
+ // Remove the formatting to get integer data for summation
+ var intVal = function ( i ) {
+ return typeof i === 'string' ?
+ i.replace(/[\$,]/g, '')*1 :
+ typeof i === 'number' ?
+ i : 0;
+ };
+
+ // Total over all pages
+ total = api
+ .column( 4 )
+ .data()
+ .reduce( function (a, b) {
+ return intVal(a) + intVal(b);
+ } );
+
+ // Total over this page
+ pageTotal = api
+ .column( 4, { page: 'current'} )
+ .data()
+ .reduce( function (a, b) {
+ return intVal(a) + intVal(b);
+ }, 0 );
+
+ // Update footer
+ $( api.column( 4 ).footer() ).html(
+ '$'+pageTotal +' ( $'+ total +' total)'
+ );
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
th { white-space: nowrap; }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+DataTables can use different data for different actions (display, ordering and searching) which can be immensely powerful for transforming data in the display
+ to be intuitive for the end user, while using different, or more complex data, for other actions. For example, if a table contains a formatted telephone number in
+ the format xxx-xxxx
, intuitively a user might search for the number but without a dash. Using orthogonal data for searching allows both forms of the
+ telephone number to be used, while only the nicely formatted number is displayed in the table.
One method in which DataTables can obtain this orthogonal data for its different actions is through custom HTML5 data attributes. DataTables + will automatically detect four different attributes on the HTML elements:
+ +data-sort
or data-order
- for ordering datadata-filter
or data-search
- for search dataThis example shows the use of data-sort
and data-filter
attributes. In this case the first column has been formatted so the first name
+ has abbreviated, but the full name is still searchable (search for "Bruno" for example). Additionally, although the last column contains non-numeric data in it
+ (/y
) the column will correctly order numerically as the data-sort
/ data-order
attribute is set on the column with plain
+ numeric data.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
T. Nixon | +System Architect | +Edinburgh | +61 | +Mon 25th Apr 11 | +$320,800/y | +
G. Winters | +Accountant | +Tokyo | +63 | +Mon 25th Jul 11 | +$170,750/y | +
A. Cox | +Junior Technical Author | +San Francisco | +66 | +Mon 12th Jan 09 | +$86,000/y | +
C. Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +Thu 29th Mar 12 | +$433,060/y | +
A. Satou | +Accountant | +Tokyo | +33 | +Fri 28th Nov 08 | +$162,700/y | +
B. Williamson | +Integration Specialist | +New York | +61 | +Sun 2nd Dec 12 | +$372,000/y | +
H. Chandler | +Sales Assistant | +San Francisco | +59 | +Mon 6th Aug 12 | +$137,500/y | +
R. Davidson | +Integration Specialist | +Tokyo | +55 | +Thu 14th Oct 10 | +$327,900/y | +
C. Hurst | +Javascript Developer | +San Francisco | +39 | +Tue 15th Sep 09 | +$205,500/y | +
S. Frost | +Software Engineer | +Edinburgh | +23 | +Sat 13th Dec 08 | +$103,600/y | +
J. Gaines | +Office Manager | +London | +30 | +Fri 19th Dec 08 | +$90,560/y | +
Q. Flynn | +Support Lead | +Edinburgh | +22 | +Sun 3rd Mar 13 | +$342,000/y | +
C. Marshall | +Regional Director | +San Francisco | +36 | +Thu 16th Oct 08 | +$470,600/y | +
H. Kennedy | +Senior Marketing Designer | +London | +43 | +Tue 18th Dec 12 | +$313,500/y | +
T. Fitzpatrick | +Regional Director | +London | +19 | +Wed 17th Mar 10 | +$385,750/y | +
M. Silva | +Marketing Designer | +London | +66 | +Tue 27th Nov 12 | +$198,500/y | +
P. Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +Wed 9th Jun 10 | +$725,000/y | +
G. Little | +Systems Administrator | +New York | +59 | +Fri 10th Apr 09 | +$237,500/y | +
B. Greer | +Software Engineer | +London | +41 | +Sat 13th Oct 12 | +$132,000/y | +
D. Rios | +Personnel Lead | +Edinburgh | +35 | +Wed 26th Sep 12 | +$217,500/y | +
J. Caldwell | +Development Lead | +New York | +30 | +Sat 3rd Sep 11 | +$345,000/y | +
Y. Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +Thu 25th Jun 09 | +$675,000/y | +
C. Vance | +Pre-Sales Support | +New York | +21 | +Mon 12th Dec 11 | +$106,450/y | +
D. Wilder | +Sales Assistant | +Sidney | +23 | +Mon 20th Sep 10 | +$85,600/y | +
A. Ramos | +Chief Executive Officer (CEO) | +London | +47 | +Fri 9th Oct 09 | +$1,200,000/y | +
G. Joyce | +Developer | +Edinburgh | +42 | +Wed 22nd Dec 10 | +$92,575/y | +
J. Chang | +Regional Director | +Singapore | +28 | +Sun 14th Nov 10 | +$357,650/y | +
B. Wagner | +Software Engineer | +San Francisco | +28 | +Tue 7th Jun 11 | +$206,850/y | +
F. Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +Thu 11th Mar 10 | +$850,000/y | +
S. Itou | +Regional Marketing | +Tokyo | +20 | +Sun 14th Aug 11 | +$163,000/y | +
M. House | +Integration Specialist | +Sidney | +37 | +Thu 2nd Jun 11 | +$95,400/y | +
S. Burks | +Developer | +London | +53 | +Thu 22nd Oct 09 | +$114,500/y | +
P. Bartlett | +Technical Author | +London | +27 | +Sat 7th May 11 | +$145,000/y | +
G. Cortez | +Team Leader | +San Francisco | +22 | +Sun 26th Oct 08 | +$235,500/y | +
M. Mccray | +Post-Sales support | +Edinburgh | +46 | +Wed 9th Mar 11 | +$324,050/y | +
U. Butler | +Marketing Designer | +San Francisco | +47 | +Wed 9th Dec 09 | +$85,675/y | +
H. Hatfield | +Office Manager | +San Francisco | +51 | +Tue 16th Dec 08 | +$164,500/y | +
H. Fuentes | +Secretary | +San Francisco | +41 | +Fri 12th Feb 10 | +$109,850/y | +
V. Harrell | +Financial Controller | +San Francisco | +62 | +Sat 14th Feb 09 | +$452,500/y | +
T. Mooney | +Office Manager | +London | +37 | +Thu 11th Dec 08 | +$136,200/y | +
J. Bradshaw | +Director | +New York | +65 | +Fri 26th Sep 08 | +$645,750/y | +
O. Liang | +Support Engineer | +Singapore | +64 | +Thu 3rd Feb 11 | +$234,500/y | +
B. Nash | +Software Engineer | +London | +38 | +Tue 3rd May 11 | +$163,500/y | +
S. Yamamoto | +Support Engineer | +Tokyo | +37 | +Wed 19th Aug 09 | +$139,575/y | +
T. Walton | +Developer | +New York | +61 | +Sun 11th Aug 13 | +$98,540/y | +
F. Camacho | +Support Engineer | +San Francisco | +47 | +Tue 7th Jul 09 | +$87,500/y | +
S. Baldwin | +Data Coordinator | +Singapore | +64 | +Mon 9th Apr 12 | +$138,575/y | +
Z. Frank | +Software Engineer | +New York | +63 | +Mon 4th Jan 10 | +$125,250/y | +
Z. Serrano | +Software Engineer | +San Francisco | +56 | +Fri 1st Jun 12 | +$115,000/y | +
J. Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +Fri 1st Feb 13 | +$75,650/y | +
C. Stevens | +Sales Assistant | +New York | +46 | +Tue 6th Dec 11 | +$145,600/y | +
H. Butler | +Regional Director | +London | +47 | +Mon 21st Mar 11 | +$356,250/y | +
L. Greer | +Systems Administrator | +London | +21 | +Fri 27th Feb 09 | +$103,500/y | +
J. Alexander | +Developer | +San Francisco | +30 | +Wed 14th Jul 10 | +$86,500/y | +
S. Decker | +Regional Director | +Edinburgh | +51 | +Thu 13th Nov 08 | +$183,000/y | +
M. Bruce | +Javascript Developer | +Singapore | +29 | +Mon 27th Jun 11 | +$183,000/y | +
D. Snider | +Customer Support | +New York | +27 | +Tue 25th Jan 11 | +$112,000/y | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+As of DataTables 1.10.5 it is now possible to define initialisation options using HTML5 data-*
+ attributes. The attribute names are read by DataTables and used, potentially in combination with, the standard Javascript initialisation options (with the
+ data-*
attributes taking priority).
Please note that the attribute values must contain valid JSON data or a Javascript primitive (as require by jQuery's $().data()
method - this means that double quotes should be used inside the attribute if needed
+ for a string (see the data-order
example below).
Additionally, jQuery will convert a dashed string into the camel-case notation used by DataTables for its options. For example data-page-length
is
+ used to represent pageLengthDT
.
The table below shows the use of pageLengthDT
and orderDT
on the main table. Column options can also be defined on the table column cells, as shown by the
+ use of the columns.orderableDT
option on the fifth column below.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+The configuration options offered by DataTables extend much further than the options shown in the basic initialisation of this documentation. Through + combinations of the options available and the use of callbacks, DataTables is completely customisable and will fit into exactly what you need for your table + display.
+ +This section shows some more advanced initialisation options. Keep in mind also that each example can be combined with the other examples to get what you + want!
+As well as being able to pass language information to DataTables through the languageDT
initialisation option, you can also store the language information in a file, which
+ DataTables can load by Ajax using the language.urlDT
option.
The following example shows DataTables reading a German language file which is hosted on the DataTables CDN
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "language": {
+ "url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/German.json"
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+It is possible to easily customise the options shown in the length menu (by default at the top left of the table) using the lengthMenuDT
initialisation
+ option.
This parameter can take one of two forms:
+ +The example below shows a 2D array being used to include a "Show all" records option.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+When DataTables reads the table content from an HTML table (rather than an Ajax or Javascript data source), by default it will read the information in the table + into an array that DataTables stores internally. Each array element represents a column.
+ +It can be very useful to have DataTables read the information into an object rather than an array, an option that can be triggered using the columns.dataDT
+ initialisation option to define how you want the data to be stored. Typically columns.dataDT
is used with Ajax sourced data to tell DataTables
+ where to read data from, but as can be seen here it also tells DataTables where to write the data to.
This ability to store data into an object can be very useful when working with the DataTables API after the table has been initialised.
+ +In the example shown here, the data read from each row in the table is read into a Javascript object with the structure:
+
+{
+ "name": "...",
+ "position": "...",
+ "office": "...",
+ "age": "...",
+ "start_date": "...",
+ "salary": "..."
+}
+
+
+
+ Please note that this feature requires DataTables 1.10.3 or newer.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable({
+ "columns": [
+ { "data": "name" },
+ { "data": "position" },
+ { "data": "office" },
+ { "data": "age" },
+ { "data": "start_date" },
+ { "data": "salary" }
+ ]
+ });
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+The following example shows how a callback function can be used to format a particular row at draw time. For each row that is generated for display, the
+ createdRowDT
function
+ is called once and once only. It is passed the create row node which can then be modified.
In this case a trivial example of making the 'salary' column blue and bold by adding a CSS class to the container cell if the salary is greater than $4,000.
+ Note that columns.createdCellDT
could also be used to create exactly the same effect.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "createdRow": function ( row, data, index ) {
+ if ( data[5].replace(/[\$,]/g, '') * 1 > 150000 ) {
+ $('td', row).eq(5).addClass('highlight');
+ }
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
td.highlight {
+ font-weight: bold;
+ color: blue;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Although DataTables doesn't have row grouping built-in (picking one of the many methods available would overly limit the DataTables core), it is most certainly + possible to give the look and feel of row grouping.
+ +In the example below the 'group' is the office location, which is based on the information in the third column (which is set to hidden). The grouping indicator
+ is added by the drawCallbackDT
function, which will parse through the rows which are displayed, and enter a grouping TR
+ element where a new group is found. A click
event handler is added for the grouping rows to allow the grouping order to be restored as well as
+ ordering by any other column.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable({
+ "columnDefs": [
+ { "visible": false, "targets": 2 }
+ ],
+ "order": [[ 2, 'asc' ]],
+ "displayLength": 25,
+ "drawCallback": function ( settings ) {
+ var api = this.api();
+ var rows = api.rows( {page:'current'} ).nodes();
+ var last=null;
+
+ api.column(2, {page:'current'} ).data().each( function ( group, i ) {
+ if ( last !== group ) {
+ $(rows).eq( i ).before(
+ '<tr class="group"><td colspan="5">'+group+'</td></tr>'
+ );
+
+ last = group;
+ }
+ } );
+ }
+ } );
+
+ // Order by the grouping
+ $('#example tbody').on( 'click', 'tr.group', function () {
+ var currentOrder = table.order()[0];
+ if ( currentOrder[0] === 2 && currentOrder[1] === 'asc' ) {
+ table.order( [ 2, 'desc' ] ).draw();
+ }
+ else {
+ table.order( [ 2, 'asc' ] ).draw();
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
tr.group,
+tr.group:hover {
+ background-color: #ddd !important;
+}
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+At times you may wish to change the default ordering direction sequence for columns (some or all of them) to be 'descending' rather than DataTables' default
+ ascending. This can be done through the use of the columns.orderSequenceDT
initialisation parameter. This parameter also allows you to limit the ordering
+ to a single direction, or you could add complex behaviour to the ordering interaction.
The example below shows:
+ +It's worth noting that I don't have a good use case for when you might what to mix such complex ordering behaviour into a single table, but the example shows + how these options can be use and therefore applied across all columns.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "aoColumns": [
+ null,
+ null,
+ { "orderSequence": [ "asc" ] },
+ { "orderSequence": [ "desc", "asc", "asc" ] },
+ { "orderSequence": [ "desc" ] },
+ null
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+When loading data from an Ajax source, by default, DataTables will look for the data to use in the data
parameter of a returned object (e.g.
+ { "data": [...] }
). This can easily be change by using the dataSrc
option of the ajaxDT
initiation option.
The ajax.dataSrcDT
has a number of ways in which it can be used:
dataSrc: 'myData'
) - obtain data from a different property in the source object.dataSrc: ''
) - the data source is not an object but an array.dataSrc: function(json) {}
) - a function can be used to transform the data from one source format to another (for example
+ you could convert from XML to a Javascript object). The value returned from the function is used as the data for the table.The example below shows ajax.dataSrcDT
being used as an empty string. This tells DataTables that the JSON loaded is a plain
+ array, not an object with an array inside it as is the default.
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "ajax": {
+ "url": "data/objects_root_array.txt",
+ "dataSrc": ""
+ },
+ "columns": [
+ { "data": "name" },
+ { "data": "position" },
+ { "data": "office" },
+ { "data": "extn" },
+ { "data": "start_date" },
+ { "data": "salary" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+When loading data from an Ajax source, by default, DataTables will look for the data to use in the data
parameter of a returned object (e.g.
+ { "data": [...] }
). This can easily be change by using the dataSrc
option of the ajaxDT
initiation option.
The ajax.dataSrcDT
has a number of ways in which it can be used:
dataSrc: 'myData'
) - obtain data from a different property in the source object.dataSrc: ''
) - the data source is not an object but an array.dataSrc: function(json) {}
) - a function can be used to transform the data from one source format to another (for example
+ you could convert from XML to a Javascript object). The value returned from the function is used as the data for the table.The example below shows ajax.dataSrcDT
being used as a string to get the data from a different source property, in this case
+ demo
but it could be any value, included a nested property by using standard dotted Javascript object notation.
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "ajax": {
+ "url": "data/arrays_custom_prop.txt",
+ "dataSrc": "demo"
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+DataTables has the ability to use data from almost data JSON data source through the use of the columns.dataDT
option. In
+ its simplest case, it can be used to read arbitrary object properties, but can also be extended to n levels of nested objects / arrays through the use of
+ standard Javascript dotted object notation. Each dot (.
) in the columns.dataDT
option represents another object level.
In this example hr.position
refers to the position
property of the hr
object in the row's data source object, while
+ contact.0
refers to the first element of the contact
array. Any number of dots can be used to obtain deeply nested data.
The example below shows DataTables reading information for the columns from nested objects and arrays, where the structure of the row's data source in this + example is:
+
+{
+ "name": "Tiger Nixon",
+ "hr": {
+ "position": "System Architect",
+ "salary": "$3,120",
+ "start_date": "2011/04/25"
+ },
+ "contact": [
+ "Edinburgh",
+ "5421"
+ ]
+}
+
+
+ Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "processing": true,
+ "ajax": "data/objects_deep.txt",
+ "columns": [
+ { "data": "name" },
+ { "data": "hr.position" },
+ { "data": "contact.0" },
+ { "data": "contact.1" },
+ { "data": "hr.start_date" },
+ { "data": "hr.salary" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+When working with large data sources, you might seek to improve the speed at which DataTables runs. One method to do this is to make use of the built-in
+ deferred rendering option in DataTables with the deferRenderDT
option.
When deferred rendering is enabled, rather than having DataTables create all TR
and TD
nodes required for the table when the data is loaded, DataTables will only create the nodes required for each individual row at the time of
+ that row being drawn on the page (these nodes are then retained in case they are needed again so they aren't created multiple times). This can give a significant
+ performance increase, since a lot less work is done at initialisation time.
The example below shows DataTables with deferred rendering enabled. For this small example you'll likely notice no difference, but larger tables can benefit + significantly from simply enabling this parameter.
+Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "ajax": "data/arrays.txt",
+ "deferRender": true
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+DataTables can read data from a server via Ajax, while still performing searching, ordering, paging etc on the client-side. This is done through use of the
+ ajaxDT
option, which has a
+ number of options to customise how the data is retrieved from the server.
The examples in this section demonstrate the use of Ajax loading data in DataTables, with client-side processing.
+In some tables you might wish to have some content generated automatically. This can be done in a number of ways:
+ +columns.renderDT
for content that is dynamic (i.e. based upon the row's data)columns.defaultContentDT
for static content (i.e. simple strings)This examples shows the use of columns.defaultContentDT
to create a button element in the last column of the table. A simple
+ jQuery click
event listener is used to watch for clicks on the row, and when activated uses the row().data()DT
method to get the data for the
+ row and show a bit of information about it in an alert
box. This is a simple use case, but it can be built up to be arbitrarily complex.
Note also that the columns.dataDT
option for the column has been set to null
to indicate that the column has
+ no information that should be obtained data source object.
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ "ajax": "data/arrays.txt",
+ "columnDefs": [ {
+ "targets": -1,
+ "data": null,
+ "defaultContent": "<button>Click!</button>"
+ } ]
+ } );
+
+ $('#example tbody').on( 'click', 'button', function () {
+ var data = table.row( $(this).parents('tr') ).data();
+ alert( data[0] +"'s salary is: "+ data[ 5 ] );
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+To try and make life easy, by default, DataTables expects arrays to be used as the data source for rows in the table. However, this isn't always useful, and you + may wish to have DataTables use objects as the data source for each row (i.e. each row has its data described by an object) as this can make working with the data + much more understandable, particularly if you are using the API and you don't need to keep track of array indexes.
+ +This can be done quite simply by using the columns.dataDT
option which you use to tell DataTables which property to use from the data source object
+ for each column.
In this example the Ajax source returns an array of objects, which DataTables uses to display the table. The structure of the row's data source in this example + is:
+
+{
+ "name": "Tiger Nixon",
+ "position": "System Architect",
+ "salary": "$3,120",
+ "start_date": "2011/04/25",
+ "office": "Edinburgh",
+ "extn": "5421"
+}
+
+
+ Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "ajax": "data/objects.txt",
+ "columns": [
+ { "data": "name" },
+ { "data": "position" },
+ { "data": "office" },
+ { "data": "extn" },
+ { "data": "start_date" },
+ { "data": "salary" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+The information read from an Ajax data source can be arbitrarily complex, but still be displayed by DataTables through the columns.dataDT
option, which
+ is particularly useful for working with JSON feeds in an already defined format.
The columns.dataDT
option has the ability to read information not only from objects, but also from arrays
+ using the same dotted object syntax as for objects. In addition to this, when working with an array data source columns.dataDT
can process
+ the data to combine and display the data in simple forms (more complex forms can be defined by using columns.dataDT
as a
+ function).
This example shows two different aspects of using columns.dataDT
to read arrays:
name[, ]
).hr.0
). Note that the order in which the data can be used in the columns does not have to match the order in which it is defined in the data
+ source. The structure of the row's data source in this example is:
+{
+ "name": [
+ "Nixon",
+ "Tiger"
+ ],
+ "hr": [
+ "System Architect",
+ "$3,120",
+ "2011/04/25"
+ ],
+ "office": "Edinburgh",
+ "extn": "5421"
+}
+
+
+ Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "ajax": "data/objects_subarrays.txt",
+ "columns": [
+ { "data": "name[, ]" },
+ { "data": "hr.0" },
+ { "data": "office" },
+ { "data": "extn" },
+ { "data": "hr.2" },
+ { "data": "hr.1" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+To try and make life easy, by default, DataTables expects arrays to be used as the data source for rows in the table. However, this isn't always useful, and you + may wish to have DataTables use objects as the data source for each row (i.e. each row has its data described by an object) as this can make working with the data + much more understandable, particularly if you are using the API and you don't need to keep track of array indexes.
+ +This can be done quite simply by using the columns.dataDT
option which you use to tell DataTables which property to use from the data source object
+ for each column.
In this example the Ajax source returns an array of objects, which DataTables uses to display the table. The structure of the row's data source in this example + is:
+
+{
+ "name": "Tiger Nixon",
+ "position": "System Architect",
+ "salary": "$3,120",
+ "start_date": {
+ "display": "Mon 25th Apr 11",
+ "timestamp": "1303682400"
+ },
+ "office": "Edinburgh",
+ "extn": "5421"
+}
+
+
+ Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ ajax: "data/orthogonal.txt",
+ columns: [
+ { data: "name" },
+ { data: "position" },
+ { data: "office" },
+ { data: "extn" },
+ { data: {
+ _: "start_date.display",
+ sort: "start_date.timestamp"
+ } },
+ { data: "salary" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+DataTables has the ability to read data from virtually any JSON data source that can be obtained by Ajax. This can be done, in its most simple form, by setting
+ the ajaxDT
option to the
+ address of the JSON data source.
The ajaxDT
option also
+ allows for more advanced configuration such as altering how the Ajax request is made. See the ajaxDT
documentation or the other Ajax examples for DataTables for further information.
By default DataTables will assume that an array data source is to be used and will read the information to be displayed in each column from the row's array
+ using the column index, making working with arrays very simple (note that this can be changed, or objects used may using the columns.dataDT
option, shown
+ in other examples).
The example below shows DataTables loading data for a table from arrays as the data source, where the structure of the row's data source in this example is:
+
+[
+ "Tiger Nixon",
+ "System Architect",
+ "Edinburgh",
+ "5421",
+ "2011/04/25",
+ "$3,120"
+]
+
+
+ Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "ajax": "data/arrays.txt"
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+New rows can be added to a DataTable very easily using the row.add()DT
API method. Simply call the API function with the data that is to be used for the new row (be it an
+ array or object). Multiple rows can be added using the rows.add()DT
method (note the plural).
Note that in order to see the new row in the table you must call the draw()DT
method, which is easily done through the chaining that the DataTables API makes use of.
This example shows a single row being added each time the button below is clicked upon.
+Column 1 | +Column 2 | +Column 3 | +Column 4 | +Column 5 | +
---|---|---|---|---|
Column 1 | +Column 2 | +Column 3 | +Column 4 | +Column 5 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var t = $('#example').DataTable();
+ var counter = 1;
+
+ $('#addRow').on( 'click', function () {
+ t.row.add( [
+ counter +'.1',
+ counter +'.2',
+ counter +'.3',
+ counter +'.4',
+ counter +'.5'
+ ] ).draw();
+
+ counter++;
+ } );
+
+ // Automatically add a first row of data
+ $('#addRow').click();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+There are times when you may wish to call API functions inside the DataTables callback functions (for example initCompleteDT
, rowCallbackDT
etc). The
+ complicating issue with this is that the object hasn't fully initialised, so you can't assign the result to a variable and then use that variable in the callback.
+ However, all of DataTables' callback functions are executed in the scope of the DataTable instance, so you can use the Javascript special variable
+ this
to access the API (this.api()
will give an API instance) as this
is the table
+ node.
In this example you will be able to see that the $()DT
method is used to get all cell nodes in the table's body and then act on them (in this case adding a click
+ event). The action here is to apply a filter to the table with the value of what is in each cell.
It is also worth noting that this same effect could be achieved by attaching a delegated click event after the table has been initialised - but the example + shows the use of the API inside the callbacks!
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "initComplete": function () {
+ var api = this.api();
+ api.$('td').click( function () {
+ api.search( this.innerHTML ).draw();
+ } );
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Highly-interactive tables often require a 'counter' column that contains the position in the table for each row. This column should not be sortable, and will + change dynamically as the ordering and searching applied to the table is altered by the end user.
+ +This example shows how this can be achieved with DataTables, where the first column is the counter column, and is updated when ordering or searching occurs.
+ This is done by listening for the orderDT
and
+ searchDT
events emitted by the table. When
+ these events are detected the column().nodes()DT
method is used to get the TD/TH nodes for the target column and the each()
helper
+ function used to iterate over each, which have their contents updated as needed. Note that the filter
and order
options are using in the
+ column()DT
method to get the nodes in the
+ current order and with the currently applied filter.
+ | Name | +Position | +Office | +Age | +Salary | +
---|---|---|---|---|---|
+ | Name | +Position | +Office | +Age | +Salary | +
+ | Tiger Nixon | +System Architect | +Edinburgh | +61 | +$320,800 | +
+ | Garrett Winters | +Accountant | +Tokyo | +63 | +$170,750 | +
+ | Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +$86,000 | +
+ | Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +$433,060 | +
+ | Airi Satou | +Accountant | +Tokyo | +33 | +$162,700 | +
+ | Brielle Williamson | +Integration Specialist | +New York | +61 | +$372,000 | +
+ | Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +$137,500 | +
+ | Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +$327,900 | +
+ | Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +$205,500 | +
+ | Sonya Frost | +Software Engineer | +Edinburgh | +23 | +$103,600 | +
+ | Jena Gaines | +Office Manager | +London | +30 | +$90,560 | +
+ | Quinn Flynn | +Support Lead | +Edinburgh | +22 | +$342,000 | +
+ | Charde Marshall | +Regional Director | +San Francisco | +36 | +$470,600 | +
+ | Haley Kennedy | +Senior Marketing Designer | +London | +43 | +$313,500 | +
+ | Tatyana Fitzpatrick | +Regional Director | +London | +19 | +$385,750 | +
+ | Michael Silva | +Marketing Designer | +London | +66 | +$198,500 | +
+ | Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +$725,000 | +
+ | Gloria Little | +Systems Administrator | +New York | +59 | +$237,500 | +
+ | Bradley Greer | +Software Engineer | +London | +41 | +$132,000 | +
+ | Dai Rios | +Personnel Lead | +Edinburgh | +35 | +$217,500 | +
+ | Jenette Caldwell | +Development Lead | +New York | +30 | +$345,000 | +
+ | Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +$675,000 | +
+ | Caesar Vance | +Pre-Sales Support | +New York | +21 | +$106,450 | +
+ | Doris Wilder | +Sales Assistant | +Sidney | +23 | +$85,600 | +
+ | Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +$1,200,000 | +
+ | Gavin Joyce | +Developer | +Edinburgh | +42 | +$92,575 | +
+ | Jennifer Chang | +Regional Director | +Singapore | +28 | +$357,650 | +
+ | Brenden Wagner | +Software Engineer | +San Francisco | +28 | +$206,850 | +
+ | Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +$850,000 | +
+ | Shou Itou | +Regional Marketing | +Tokyo | +20 | +$163,000 | +
+ | Michelle House | +Integration Specialist | +Sidney | +37 | +$95,400 | +
+ | Suki Burks | +Developer | +London | +53 | +$114,500 | +
+ | Prescott Bartlett | +Technical Author | +London | +27 | +$145,000 | +
+ | Gavin Cortez | +Team Leader | +San Francisco | +22 | +$235,500 | +
+ | Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +$324,050 | +
+ | Unity Butler | +Marketing Designer | +San Francisco | +47 | +$85,675 | +
+ | Howard Hatfield | +Office Manager | +San Francisco | +51 | +$164,500 | +
+ | Hope Fuentes | +Secretary | +San Francisco | +41 | +$109,850 | +
+ | Vivian Harrell | +Financial Controller | +San Francisco | +62 | +$452,500 | +
+ | Timothy Mooney | +Office Manager | +London | +37 | +$136,200 | +
+ | Jackson Bradshaw | +Director | +New York | +65 | +$645,750 | +
+ | Olivia Liang | +Support Engineer | +Singapore | +64 | +$234,500 | +
+ | Bruno Nash | +Software Engineer | +London | +38 | +$163,500 | +
+ | Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +$139,575 | +
+ | Thor Walton | +Developer | +New York | +61 | +$98,540 | +
+ | Finn Camacho | +Support Engineer | +San Francisco | +47 | +$87,500 | +
+ | Serge Baldwin | +Data Coordinator | +Singapore | +64 | +$138,575 | +
+ | Zenaida Frank | +Software Engineer | +New York | +63 | +$125,250 | +
+ | Zorita Serrano | +Software Engineer | +San Francisco | +56 | +$115,000 | +
+ | Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +$75,650 | +
+ | Cara Stevens | +Sales Assistant | +New York | +46 | +$145,600 | +
+ | Hermione Butler | +Regional Director | +London | +47 | +$356,250 | +
+ | Lael Greer | +Systems Administrator | +London | +21 | +$103,500 | +
+ | Jonas Alexander | +Developer | +San Francisco | +30 | +$86,500 | +
+ | Shad Decker | +Regional Director | +Edinburgh | +51 | +$183,000 | +
+ | Michael Bruce | +Javascript Developer | +Singapore | +29 | +$183,000 | +
+ | Donna Snider | +Customer Support | +New York | +27 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var t = $('#example').DataTable( {
+ "columnDefs": [ {
+ "searchable": false,
+ "orderable": false,
+ "targets": 0
+ } ],
+ "order": [[ 1, 'asc' ]]
+ } );
+
+ t.on( 'order.dt search.dt', function () {
+ t.column(0, {search:'applied', order:'applied'}).nodes().each( function (cell, i) {
+ cell.innerHTML = i+1;
+ } );
+ } ).draw();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+In order to perform paging, ordering, searching etc, DataTables can remove rows and cells from the document (i.e. those rows / cells which are not needed are + not inserted into the document). This increases performance and compatibility, however, it means that submitting forms which span multiple pages requires a little + bit of additional work to get the information that is not in the document any longer.
+ +The $()DT
method can be used to get nodes
+ from the document regardless of paging, ordering etc. This example shows $()DT
being used to get all input
elements from the table.
In the example a simple alert()
is used to show the information from the form, but an Ajax call to the server with the form data could easily be
+ performed.
Name | +Age | +Position | +Office | +
---|---|---|---|
Name | +Age | +Position | +Office | +
Tiger Nixon | ++ | + | + |
Garrett Winters | ++ | + | + |
Ashton Cox | ++ | + | + |
Cedric Kelly | ++ | + | + |
Airi Satou | ++ | + | + |
Brielle Williamson | ++ | + | + |
Herrod Chandler | ++ | + | + |
Rhona Davidson | ++ | + | + |
Colleen Hurst | ++ | + | + |
Sonya Frost | ++ | + | + |
Jena Gaines | ++ | + | + |
Quinn Flynn | ++ | + | + |
Charde Marshall | ++ | + | + |
Haley Kennedy | ++ | + | + |
Tatyana Fitzpatrick | ++ | + | + |
Michael Silva | ++ | + | + |
Paul Byrd | ++ | + | + |
Gloria Little | ++ | + | + |
Bradley Greer | ++ | + | + |
Dai Rios | ++ | + | + |
Jenette Caldwell | ++ | + | + |
Yuri Berry | ++ | + | + |
Caesar Vance | ++ | + | + |
Doris Wilder | ++ | + | + |
Angelica Ramos | ++ | + | + |
Gavin Joyce | ++ | + | + |
Jennifer Chang | ++ | + | + |
Brenden Wagner | ++ | + | + |
Fiona Green | ++ | + | + |
Shou Itou | ++ | + | + |
Michelle House | ++ | + | + |
Suki Burks | ++ | + | + |
Prescott Bartlett | ++ | + | + |
Gavin Cortez | ++ | + | + |
Martena Mccray | ++ | + | + |
Unity Butler | ++ | + | + |
Howard Hatfield | ++ | + | + |
Hope Fuentes | ++ | + | + |
Vivian Harrell | ++ | + | + |
Timothy Mooney | ++ | + | + |
Jackson Bradshaw | ++ | + | + |
Olivia Liang | ++ | + | + |
Bruno Nash | ++ | + | + |
Sakura Yamamoto | ++ | + | + |
Thor Walton | ++ | + | + |
Finn Camacho | ++ | + | + |
Serge Baldwin | ++ | + | + |
Zenaida Frank | ++ | + | + |
Zorita Serrano | ++ | + | + |
Jennifer Acosta | ++ | + | + |
Cara Stevens | ++ | + | + |
Hermione Butler | ++ | + | + |
Lael Greer | ++ | + | + |
Jonas Alexander | ++ | + | + |
Shad Decker | ++ | + | + |
Michael Bruce | ++ | + | + |
Donna Snider | ++ | + | + |
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ $('button').click( function() {
+ var data = table.$('input, select').serialize();
+ alert(
+ "The following data would have been submitted to the server: \n\n"+
+ data.substr( 0, 120 )+'...'
+ );
+ return false;
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Highlighting rows and columns have be quite useful for drawing attention to where the user's cursor is in a table, particularly if you have a lot of narrow + columns. Of course the highlighting of a row is easy enough using CSS, but for column highlighting, you need to use a little bit of Javascript.
+ +This example shows that in action on DataTable by making use of the cell().index()DT
method to get the index of the column that is to be operated on, and then the cells().nodes()DT
and column().nodes()DT
methods to remove old
+ classes and apply the new highlighted class, respectively.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var lastIdx = null;
+ var table = $('#example').DataTable();
+
+ $('#example tbody')
+ .on( 'mouseover', 'td', function () {
+ var colIdx = table.cell(this).index().column;
+
+ if ( colIdx !== lastIdx ) {
+ $( table.cells().nodes() ).removeClass( 'highlight' );
+ $( table.column( colIdx ).nodes() ).addClass( 'highlight' );
+ }
+ } )
+ .on( 'mouseleave', function () {
+ $( table.cells().nodes() ).removeClass( 'highlight' );
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
td.highlight {
+ background-color: whitesmoke !important;
+}
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+The real power of DataTables can be exploited through the use of the API that it presents. The DataTables API is designed to be simple, consistent and easy to + use. The examples in this section show how the API may be used.
+The searching functionality that is provided by DataTables is very useful for quickly search through the information in the table - however the search is + global, and you may wish to present controls to search on specific columns only.
+ +DataTables has the ability to apply searching to a specific column through the column().search()DT
method (note that the name of the method is search
not filter
+ since filter()DT
is used to apply a
+ filter to a result set).
The column searches are cumulative, so you can apply multiple individual column searchs, in addition to the global search, allowing complex searching options to + be presented to the user.
+ +This examples shows text elements being used with the column().search()DT
method to add input controls in the footer of the table for each column. Note that the
+ *index*:visible
option is used for the column selector to ensure that the column()DT
method takes into account any hidden columns when selecting the column to act upon.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ // Setup - add a text input to each footer cell
+ $('#example tfoot th').each( function () {
+ var title = $('#example thead th').eq( $(this).index() ).text();
+ $(this).html( '<input type="text" placeholder="Search '+title+'" />' );
+ } );
+
+ // DataTable
+ var table = $('#example').DataTable();
+
+ // Apply the search
+ table.columns().eq( 0 ).each( function ( colIdx ) {
+ $( 'input', table.column( colIdx ).footer() ).on( 'keyup change', function () {
+ table
+ .column( colIdx )
+ .search( this.value )
+ .draw();
+ } );
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
tfoot input {
+ width: 100%;
+ padding: 3px;
+ box-sizing: border-box;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+This example is almost identical to text based individual column example and provides the same functionality, but in this case using select
input controls.
After the table is initialised, the API is used to build the select
inputs through the use of the column().data()DT
method to get the data
+ for each column in turn. The helper methods unique()DT
and sort()DT
are also used to reduce the data for set input to unique and ordered elements. Finally the
+ change
event from the select
input is used to trigger a column search using the column().search()DT
method.
Note that the column().search()DT
method in this particular case performs an exact match through the use of a custom regular
+ expression and disabling DataTables built in smart searching. For more information on the search options in DataTables API please refer to the documentation for
+ search()DT
, column().search()DT
and $.fn.dataTable.util.escapeRegex()DT
which are used for searching globally, by column and escaping regular
+ expressions respectively.
Note also that this example shows the use of initCompleteDT
a callback function that is triggered when the table has fully loaded. Use of this
+ callback isn't actually required in this example since the data is available in the table on load, but in the case of Ajax loaded data, initCompleteDT
is useful to
+ execute code after the data has been loaded.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ initComplete: function () {
+ var api = this.api();
+
+ api.columns().indexes().flatten().each( function ( i ) {
+ var column = api.column( i );
+ var select = $('<select><option value=""></option></select>')
+ .appendTo( $(column.footer()).empty() )
+ .on( 'change', function () {
+ var val = $.fn.dataTable.util.escapeRegex(
+ $(this).val()
+ );
+
+ column
+ .search( val ? '^'+val+'$' : '', true, false )
+ .draw();
+ } );
+
+ column.data().unique().sort().each( function ( d, j ) {
+ select.append( '<option value="'+d+'">'+d+'</option>' )
+ } );
+ } );
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Searching a table is one of the most common user interactions with a DataTables table, and DataTables provides a number of methods for you to control this
+ interaction. There are APIs for the global search (search()DT
) and for each individual column (column().search()DT
).
Note also that you must call the draw()DT
method after performing the search, in order for the results to be displayed.
Each search (global or column) can be marked as a regular expression (allowing you to create very complex interactions) and as a smart search or not. When smart + searching is enabled on a particular search, DataTables will modify the user input string to a complex regular expression which can make searching more + intuitive.
+ +This example allows you to "play" with the various searching options that DataTables provides.
+Target | +Search text | +Treat as regex | +Use smart search | +
---|---|---|---|
Global search | ++ | + | + |
Column - Name | ++ | + | + |
Column - Position | ++ | + | + |
Column - Office | ++ | + | + |
Column - Age | ++ | + | + |
Column - Start date | ++ | + | + |
Column - Salary | ++ | + | + |
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
function filterGlobal () {
+ $('#example').DataTable().search(
+ $('#global_filter').val(),
+ $('#global_regex').prop('checked'),
+ $('#global_smart').prop('checked')
+ ).draw();
+}
+
+function filterColumn ( i ) {
+ $('#example').DataTable().column( i ).search(
+ $('#col'+i+'_filter').val(),
+ $('#col'+i+'_regex').prop('checked'),
+ $('#col'+i+'_smart').prop('checked')
+ ).draw();
+}
+
+$(document).ready(function() {
+ $('#example').dataTable();
+
+ $('input.global_filter').on( 'keyup click', function () {
+ filterGlobal();
+ } );
+
+ $('input.column_filter').on( 'keyup click', function () {
+ filterColumn( $(this).parents('tr').attr('data-column') );
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+The DataTables API has a number of methods available for attaching child rows to a parent row in the DataTable. This can be used to show additional + information about a row, useful for cases where you wish to convey more information about a row than there is space for in the host table.
+ +The example below makes use of the row().childDT
methods to firstly check if a row is already displayed, and if so hide it (row().child.hide()DT
), otherwise show
+ it (row().child.show()DT
). The
+ content of the child row is, in this example, defined by the formatDetails()
function, but you would replace that with whatever you wanted to show the
+ content required, possibly including, for example, an Ajax call to the server to obtain the extra information to show.
+ | Name | +Position | +Office | +Salary | +
---|---|---|---|---|
+ | Name | +Position | +Office | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
/* Formatting function for row details - modify as you need */
+function format ( d ) {
+ // `d` is the original data object for the row
+ return '<table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;">'+
+ '<tr>'+
+ '<td>Full name:</td>'+
+ '<td>'+d.name+'</td>'+
+ '</tr>'+
+ '<tr>'+
+ '<td>Extension number:</td>'+
+ '<td>'+d.extn+'</td>'+
+ '</tr>'+
+ '<tr>'+
+ '<td>Extra info:</td>'+
+ '<td>And any further details here (images etc)...</td>'+
+ '</tr>'+
+ '</table>';
+}
+
+$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ "ajax": "../ajax/data/objects.txt",
+ "columns": [
+ {
+ "className": 'details-control',
+ "orderable": false,
+ "data": null,
+ "defaultContent": ''
+ },
+ { "data": "name" },
+ { "data": "position" },
+ { "data": "office" },
+ { "data": "salary" }
+ ],
+ "order": [[1, 'asc']]
+ } );
+
+ // Add event listener for opening and closing details
+ $('#example tbody').on('click', 'td.details-control', function () {
+ var tr = $(this).closest('tr');
+ var row = table.row( tr );
+
+ if ( row.child.isShown() ) {
+ // This row is already open - close it
+ row.child.hide();
+ tr.removeClass('shown');
+ }
+ else {
+ // Open this row
+ row.child( format(row.data()) ).show();
+ tr.addClass('shown');
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
td.details-control {
+ background: url('../resources/details_open.png') no-repeat center center;
+ cursor: pointer;
+}
+tr.shown td.details-control {
+ background: url('../resources/details_close.png') no-repeat center center;
+}
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+It can be quite useful at times to provide the user with the option to select rows in a DataTable. This can be done by simply using a click event to add /
+ remove a class on the table rows. The rows().data()DT
method can then be used to get the data for the selected rows. In this case it is simply counting
+ the number of selected rows, but much more complex interactions can easily be developed.
If you are looking for a more complete row selection option TableTools for DataTables provides a complete + API for selecting rows and acting upon those selected rows.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ $('#example tbody').on( 'click', 'tr', function () {
+ $(this).toggleClass('selected');
+ } );
+
+ $('#button').click( function () {
+ alert( table.rows('.selected').data().length +' row(s) selected' );
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+This example shows a modification of the multiple row selection example, where just a single can now be selected. This is done simply by checking to see if the + row already has a selected class or not, and if so removing it, if not then the class is removed from any other row in the table which does have it and applied to + the row to be selected.
+ +Also shown is the row().remove()DT
method which will delete a row from a table, and the draw()DT
method with false
as its
+ first parameter. This will redraw the table keeping the current paging (without the false
parameter the paging would be reset to the first page).
If you are looking for a more complete row selection option TableTools for DataTables provides a complete + API for selecting rows and acting upon those selected rows.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ $('#example tbody').on( 'click', 'tr', function () {
+ if ( $(this).hasClass('selected') ) {
+ $(this).removeClass('selected');
+ }
+ else {
+ table.$('tr.selected').removeClass('selected');
+ $(this).addClass('selected');
+ }
+ } );
+
+ $('#button').click( function () {
+ table.row('.selected').remove().draw( false );
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+This example shows how you can make use of the column().visible()DT
API method to dynamically show and hide columns in a table. Also included here is scrolling,
+ just to show it enabled with this API method, although that is not required for the API function to work.
In addition to this, groups of columns can be shown and hidden at the same time using the columns()DT
method to select multiple columns and then using the columns().visible()DT
method to set
+ their state.
If you are looking for a more complete column visibility interaction controls ColVis for DataTables provides a + complete interface for allowing the user to show and hide columns in the table.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ "scrollY": "200px",
+ "paging": false
+ } );
+
+ $('a.toggle-vis').on( 'click', function (e) {
+ e.preventDefault();
+
+ // Get the column API object
+ var column = table.column( $(this).attr('data-column') );
+
+ // Toggle the visibility
+ column.visible( ! column.visible() );
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+This example shows how DataTables with scrolling can be used together with jQuery UI tabs (or indeed any other method whereby the table is in a hidden,
+ display:none
, element when it is initialised). The reason this requires special consideration, is that when the DataTable is initialised in a hidden
+ element the browser doesn't have any measurements with which to give the DataTable, and this will result in the misalignment of columns when scrolling is
+ enabled.
This misalignment can be corrected by the columns.adjust()DT
method when the table is made visible (i.e. it has dimensions).
This example shows how the jQuery UI show
event can be used to trigger this method call. The visible tables on the page are selected using the
+ static dt-api-static tables()
method and passing the result to columns.adjust()DT
.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $("#tabs").tabs( {
+ "activate": function(event, ui) {
+ $( $.fn.dataTable.tables( true ) ).DataTable().columns.adjust();
+ }
+ } );
+
+ $('table.display').dataTable( {
+ "scrollY": "200px",
+ "scrollCollapse": true,
+ "paging": false,
+ "jQueryUI": true
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+The default page control presented by DataTables (forward and backward buttons with up to 7 page numbers in-between) is fine for most situations, but there are
+ cases where you may wish to customise the options presented to the end user. This is done through DataTables' extensible pagination mechanism, the pagingTypeDT
option.
There are four built-in options for which pagination controls DataTables should show:
+ +simple
- 'Previous' and 'Next' buttons onlysimple_numbers
- 'Previous' and 'Next' buttons, plus page numbersfull
- 'First', 'Previous', 'Next' and 'Last' buttonsfull_numbers
- 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbersThe language strings of 'First', 'Previous' etc can be optionally through the internationalisation options of DataTables; language.paginate.firstDT
, language.paginate.previousDT
etc.
Additional options for the buttons that are shown can be added through the use of pagination type plug-ins. Furthermore, how the buttons are actually shown can + be altered through the use of plug-in pagination renderers.
+ +The example below shows the full_numbers
type of pagination.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "pagingType": "full_numbers"
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+A dot (.
) is used to mark the decimal place in Javascript, however, many parts of the world use
+ a comma (,
) and other characters such as the Unicode decimal separator (⎖
) or a dash (-
) are often used to show
+ the decimal place in a displayed number.
When reading such numbers, Javascript won't automatically recognise them as numbers, however, DataTables' type detection and sorting methods can be instructed
+ through the language.decimalDT
option which character is used as the decimal place in your numbers. This will be
+ used to correctly adjust DataTables' type detection and sorting algorithms to sort numbers in your table.
Any character can be passed in using the language.decimalDT
option, although the decimal place character used in a single table must be
+ consistent (i.e. numbers with a dot decimal place and comma decimal place cannot both appear in the same table). Different tables on the same page can use
+ different decimal characters if required.
The example below shows a comma being used as the decimal place in the currency numbers shown in the final column.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320.800,00 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170.750,00 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86.000,00 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433.060,00 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162.700,00 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372.000,00 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137.500,00 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327.900,00 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205.500,00 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103.600,00 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90.560,00 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342.000,00 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470.600,00 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313.500,00 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385.750,00 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198.500,00 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725.000,00 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237.500,00 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132.000,00 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217.500,00 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345.000,00 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675.000,00 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106.450,00 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85.600,00 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1.200.000,00 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92.575,00 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357.650,00 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206.850,00 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850.000,00 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163.000,00 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95.400,00 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114.500,00 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145.000,00 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235.500,00 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324.050,00 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85.675,00 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164.500,00 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109.850,00 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452.500,00 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136.200,00 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645.750,00 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234.500,00 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163.500,00 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139.575,00 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98.540,00 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87.500,00 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138.575,00 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125.250,00 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115.000,00 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75.650,00 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145.600,00 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356.250,00 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103.500,00 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86.500,00 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183.000,00 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183.000,00 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112.000,00 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "language": {
+ "decimal": ",",
+ "thousands": "."
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+When using tables to display data, you will often wish to display column information in groups. DataTables fully supports colspan
and
+ rowspan
in the table's header, assigning the required order listeners to the TH element suitable for that column.
Each column must have one TH cell which is unique to it for the listeners to be added. By default DataTables will use the bottom unique cell for the column to
+ attach the order listener, if more than one cell for a column if found. The orderCellsTopDT
option can be used to tell DataTables to use the top cell if you prefer.
The example shown below has two sets of grouped information, grouped by colspan in the header.
+Name | +HR Information | +Contact | +|||
---|---|---|---|---|---|
Position | +Salary | +Office | +Extn. | +||
Name | +Position | +Salary | +Office | +Extn. | +|
Tiger Nixon | +System Architect | +$320,800 | +Edinburgh | +5421 | +t.nixon@datatables.net | +
Garrett Winters | +Accountant | +$170,750 | +Tokyo | +8422 | +g.winters@datatables.net | +
Ashton Cox | +Junior Technical Author | +$86,000 | +San Francisco | +1562 | +a.cox@datatables.net | +
Cedric Kelly | +Senior Javascript Developer | +$433,060 | +Edinburgh | +6224 | +c.kelly@datatables.net | +
Airi Satou | +Accountant | +$162,700 | +Tokyo | +5407 | +a.satou@datatables.net | +
Brielle Williamson | +Integration Specialist | +$372,000 | +New York | +4804 | +b.williamson@datatables.net | +
Herrod Chandler | +Sales Assistant | +$137,500 | +San Francisco | +9608 | +h.chandler@datatables.net | +
Rhona Davidson | +Integration Specialist | +$327,900 | +Tokyo | +6200 | +r.davidson@datatables.net | +
Colleen Hurst | +Javascript Developer | +$205,500 | +San Francisco | +2360 | +c.hurst@datatables.net | +
Sonya Frost | +Software Engineer | +$103,600 | +Edinburgh | +1667 | +s.frost@datatables.net | +
Jena Gaines | +Office Manager | +$90,560 | +London | +3814 | +j.gaines@datatables.net | +
Quinn Flynn | +Support Lead | +$342,000 | +Edinburgh | +9497 | +q.flynn@datatables.net | +
Charde Marshall | +Regional Director | +$470,600 | +San Francisco | +6741 | +c.marshall@datatables.net | +
Haley Kennedy | +Senior Marketing Designer | +$313,500 | +London | +3597 | +h.kennedy@datatables.net | +
Tatyana Fitzpatrick | +Regional Director | +$385,750 | +London | +1965 | +t.fitzpatrick@datatables.net | +
Michael Silva | +Marketing Designer | +$198,500 | +London | +1581 | +m.silva@datatables.net | +
Paul Byrd | +Chief Financial Officer (CFO) | +$725,000 | +New York | +3059 | +p.byrd@datatables.net | +
Gloria Little | +Systems Administrator | +$237,500 | +New York | +1721 | +g.little@datatables.net | +
Bradley Greer | +Software Engineer | +$132,000 | +London | +2558 | +b.greer@datatables.net | +
Dai Rios | +Personnel Lead | +$217,500 | +Edinburgh | +2290 | +d.rios@datatables.net | +
Jenette Caldwell | +Development Lead | +$345,000 | +New York | +1937 | +j.caldwell@datatables.net | +
Yuri Berry | +Chief Marketing Officer (CMO) | +$675,000 | +New York | +6154 | +y.berry@datatables.net | +
Caesar Vance | +Pre-Sales Support | +$106,450 | +New York | +8330 | +c.vance@datatables.net | +
Doris Wilder | +Sales Assistant | +$85,600 | +Sidney | +3023 | +d.wilder@datatables.net | +
Angelica Ramos | +Chief Executive Officer (CEO) | +$1,200,000 | +London | +5797 | +a.ramos@datatables.net | +
Gavin Joyce | +Developer | +$92,575 | +Edinburgh | +8822 | +g.joyce@datatables.net | +
Jennifer Chang | +Regional Director | +$357,650 | +Singapore | +9239 | +j.chang@datatables.net | +
Brenden Wagner | +Software Engineer | +$206,850 | +San Francisco | +1314 | +b.wagner@datatables.net | +
Fiona Green | +Chief Operating Officer (COO) | +$850,000 | +San Francisco | +2947 | +f.green@datatables.net | +
Shou Itou | +Regional Marketing | +$163,000 | +Tokyo | +8899 | +s.itou@datatables.net | +
Michelle House | +Integration Specialist | +$95,400 | +Sidney | +2769 | +m.house@datatables.net | +
Suki Burks | +Developer | +$114,500 | +London | +6832 | +s.burks@datatables.net | +
Prescott Bartlett | +Technical Author | +$145,000 | +London | +3606 | +p.bartlett@datatables.net | +
Gavin Cortez | +Team Leader | +$235,500 | +San Francisco | +2860 | +g.cortez@datatables.net | +
Martena Mccray | +Post-Sales support | +$324,050 | +Edinburgh | +8240 | +m.mccray@datatables.net | +
Unity Butler | +Marketing Designer | +$85,675 | +San Francisco | +5384 | +u.butler@datatables.net | +
Howard Hatfield | +Office Manager | +$164,500 | +San Francisco | +7031 | +h.hatfield@datatables.net | +
Hope Fuentes | +Secretary | +$109,850 | +San Francisco | +6318 | +h.fuentes@datatables.net | +
Vivian Harrell | +Financial Controller | +$452,500 | +San Francisco | +9422 | +v.harrell@datatables.net | +
Timothy Mooney | +Office Manager | +$136,200 | +London | +7580 | +t.mooney@datatables.net | +
Jackson Bradshaw | +Director | +$645,750 | +New York | +1042 | +j.bradshaw@datatables.net | +
Olivia Liang | +Support Engineer | +$234,500 | +Singapore | +2120 | +o.liang@datatables.net | +
Bruno Nash | +Software Engineer | +$163,500 | +London | +6222 | +b.nash@datatables.net | +
Sakura Yamamoto | +Support Engineer | +$139,575 | +Tokyo | +9383 | +s.yamamoto@datatables.net | +
Thor Walton | +Developer | +$98,540 | +New York | +8327 | +t.walton@datatables.net | +
Finn Camacho | +Support Engineer | +$87,500 | +San Francisco | +2927 | +f.camacho@datatables.net | +
Serge Baldwin | +Data Coordinator | +$138,575 | +Singapore | +8352 | +s.baldwin@datatables.net | +
Zenaida Frank | +Software Engineer | +$125,250 | +New York | +7439 | +z.frank@datatables.net | +
Zorita Serrano | +Software Engineer | +$115,000 | +San Francisco | +4389 | +z.serrano@datatables.net | +
Jennifer Acosta | +Junior Javascript Developer | +$75,650 | +Edinburgh | +3431 | +j.acosta@datatables.net | +
Cara Stevens | +Sales Assistant | +$145,600 | +New York | +3990 | +c.stevens@datatables.net | +
Hermione Butler | +Regional Director | +$356,250 | +London | +1016 | +h.butler@datatables.net | +
Lael Greer | +Systems Administrator | +$103,500 | +London | +6733 | +l.greer@datatables.net | +
Jonas Alexander | +Developer | +$86,500 | +San Francisco | +8196 | +j.alexander@datatables.net | +
Shad Decker | +Regional Director | +$183,000 | +Edinburgh | +6373 | +s.decker@datatables.net | +
Michael Bruce | +Javascript Developer | +$183,000 | +Singapore | +5384 | +m.bruce@datatables.net | +
Donna Snider | +Customer Support | +$112,000 | +New York | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+When customising DataTables for your own usage, you might find that the default position of the feature elements (filter input etc) is not quite to your liking.
+ To address this issue DataTables takes inspiration from the CSS 3 Advanced Layout Module and provides the domDT
initialisation parameter which
+ can be set to indicate where you which particular features to appear in the DOM. You can also specify div
wrapping containers (with an id and / or
+ class) to provide complete layout flexibility.
Each HTML control element presented by DataTables is denoted by a single character in the domDT
option. For example the l
option is used for the L
ength changing
+ input option.
The built-in options available are:
+ +l
- L
ength changingf
- F
iltering inputt
- The T
able!i
- I
nformationp
- P
aginationr
- pR
ocessing<
and >
- div elements<"#id"
and >
- div with an id<"class"
and >
- div with a class<"#id.class"
and >
- div with an id and classExample 1:
+
+<"wrapper"flipt>
+
+
+
+ This results in the following DOM structure:
+
+<div class="wrapper">
+ { filter }
+ { length }
+ { info }
+ { paging }
+ { table }
+</div>
+
+
+
+ Example 2:
+
+<lf<t>ip>
+
+
+
+ This results in the following DOM structure:
+
+<div>
+ { length }
+ { filter }
+ <div>
+ { table }
+ </div>
+ { info }
+ { paging }
+</div>
+
+
+
+ All options (with the exception of the t
(table) option can be specified multiple times, for if you want to show the same control multiple times
+ (pagination at the top and bottom of the table for example).
Furthermore, note that additional domDT
options can be added to DataTables through the use of plug-ins.
In the example below, the table information is moved to the top of the table, and all the interaction elements to the bottom, each wrapper in a container
+ div
.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "dom": '<"top"i>rt<"bottom"flp><"clear">'
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Disabling features that you don't wish to use for a particular table is easily done by setting a variable in the initialisation object. In the following example + only the filter feature is left enabled (which is enabled by default).
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "paging": false,
+ "ordering": false,
+ "info": false
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Often you may want to have your table resize dynamically with the page. Typically this is done by assigning width:100%
in your CSS, but this
+ presents a problem for Javascript since it can be very hard to get that relative size rather than the absolute pixels. As such, if you apply the width
+ attribute to the HTML table tag, it will be used as the width for the table (overruling any CSS styles).
This example shows a table with width="100%"
and the container is also flexible width, so as the window is resized, the table will also resize
+ dynamically.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
div.container {
+ width: 80%;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+There are times when you might find it useful to display only a sub-set of the information that was available in the original table. For example you might want
+ to reduce the amount of data shown on screen to make it clearer for the user. This is done through the columns.visibleDT
column
+ option.
The column that is hidden is still part of the table and can be made visible through the api column().visible()
API method at a future time if you
+ wish to have columns which can be shown and hidden.
Furthermore, as the hidden data is still part of the table, it can still, optionally, be filtered upon allowing the user access to that data (for example 'tag' + information for a row entry might used).
+ +In the table below both the office and age version columns have been hidden, the former is not searchable, the latter is.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "columnDefs": [
+ {
+ "targets": [ 2 ],
+ "visible": false,
+ "searchable": false
+ },
+ {
+ "targets": [ 3 ],
+ "visible": false
+ }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+DataTables is very simple to use as a jQuery plug-in with a huge range of customisable option. The examples in this section demonstrate basic initialisation of + DataTables and how it can be easily customised by passing an object with the options you want.
+Changing the language information displayed by DataTables is as simple as passing in a languageDT
object to the DataTable constructor.
The example above shows a different set of English string being used, rather than the defaults.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "language": {
+ "lengthMenu": "Display _MENU_ records per page",
+ "zeroRecords": "Nothing found - sorry",
+ "info": "Showing page _PAGE_ of _PAGES_",
+ "infoEmpty": "No records available",
+ "infoFiltered": "(filtered from _MAX_ total records)"
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+DataTables allows ordering by multiple columns at the same time, which can be activated in a number of different ways:
+ +columns.orderDataDT
+ option.columns.orderDataDT
option to specify a multiple column order by default (for example [
+ [0,'asc'], [1,'asc'] ]
).order()DT
API
+ method.Note that, the ability for the user to shift click to order multiple columns can be disabled through the orderMultiDT
option.
The example below shows the first column having a secondary order applied to the second column in the table, vice-versa for the second column being tied + directly to the first and the salary column to the first name column.
+First name | +Last name | +Position | +Office | +Salary | +
---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +$320,800 | +
Garrett | +Winters | +Accountant | +Tokyo | +$170,750 | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +$86,000 | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +$433,060 | +
Airi | +Satou | +Accountant | +Tokyo | +$162,700 | +
Brielle | +Williamson | +Integration Specialist | +New York | +$372,000 | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +$137,500 | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +$327,900 | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +$205,500 | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +$103,600 | +
Jena | +Gaines | +Office Manager | +London | +$90,560 | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +$342,000 | +
Charde | +Marshall | +Regional Director | +San Francisco | +$470,600 | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +$313,500 | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +$385,750 | +
Michael | +Silva | +Marketing Designer | +London | +$198,500 | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +$725,000 | +
Gloria | +Little | +Systems Administrator | +New York | +$237,500 | +
Bradley | +Greer | +Software Engineer | +London | +$132,000 | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +$217,500 | +
Jenette | +Caldwell | +Development Lead | +New York | +$345,000 | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +$675,000 | +
Caesar | +Vance | +Pre-Sales Support | +New York | +$106,450 | +
Doris | +Wilder | +Sales Assistant | +Sidney | +$85,600 | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +$1,200,000 | +
Gavin | +Joyce | +Developer | +Edinburgh | +$92,575 | +
Jennifer | +Chang | +Regional Director | +Singapore | +$357,650 | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +$206,850 | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +$850,000 | +
Shou | +Itou | +Regional Marketing | +Tokyo | +$163,000 | +
Michelle | +House | +Integration Specialist | +Sidney | +$95,400 | +
Suki | +Burks | +Developer | +London | +$114,500 | +
Prescott | +Bartlett | +Technical Author | +London | +$145,000 | +
Gavin | +Cortez | +Team Leader | +San Francisco | +$235,500 | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +$324,050 | +
Unity | +Butler | +Marketing Designer | +San Francisco | +$85,675 | +
Howard | +Hatfield | +Office Manager | +San Francisco | +$164,500 | +
Hope | +Fuentes | +Secretary | +San Francisco | +$109,850 | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +$452,500 | +
Timothy | +Mooney | +Office Manager | +London | +$136,200 | +
Jackson | +Bradshaw | +Director | +New York | +$645,750 | +
Olivia | +Liang | +Support Engineer | +Singapore | +$234,500 | +
Bruno | +Nash | +Software Engineer | +London | +$163,500 | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +$139,575 | +
Thor | +Walton | +Developer | +New York | +$98,540 | +
Finn | +Camacho | +Support Engineer | +San Francisco | +$87,500 | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +$138,575 | +
Zenaida | +Frank | +Software Engineer | +New York | +$125,250 | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +$115,000 | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +$75,650 | +
Cara | +Stevens | +Sales Assistant | +New York | +$145,600 | +
Hermione | +Butler | +Regional Director | +London | +$356,250 | +
Lael | +Greer | +Systems Administrator | +London | +$103,500 | +
Jonas | +Alexander | +Developer | +San Francisco | +$86,500 | +
Shad | +Decker | +Regional Director | +Edinburgh | +$183,000 | +
Michael | +Bruce | +Javascript Developer | +Singapore | +$183,000 | +
Donna | +Snider | +Customer Support | +New York | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ columnDefs: [ {
+ targets: [ 0 ],
+ orderData: [ 0, 1 ]
+ }, {
+ targets: [ 1 ],
+ orderData: [ 1, 0 ]
+ }, {
+ targets: [ 4 ],
+ orderData: [ 4, 0 ]
+ } ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Often you might wish to initialise multiple tables with a single statement. This is trivially done by using a jQuery selector which will pick up multiple + tables.
+ +The tables are independent for user control (i.e. user controlled paging on one table does not effect the others), but they do share the initialisation + parameters given (for example if you specific the Spanish language file, all tables will be shown in Spanish). Additionally, the API can be used to manipulate both + together, or independently.
+ +The example below shows two tables initialised with a single line of code, through the use of the table.display
selector (i.e. select all elements
+ which have the class of table.display
(which is suitable in this example, you might wish to use a different selector).
Name | +Position | +Office | +Age | +Salary | +
---|---|---|---|---|
Name | +Position | +Office | +Age | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +$320,800 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +$433,060 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +$103,600 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +$342,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +$217,500 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +$92,575 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +$324,050 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +$75,650 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +$183,000 | +
Name | +Position | +Office | +Age | +Salary | +
---|---|---|---|---|
Name | +Position | +Office | +Age | +Salary | +
Jena Gaines | +Office Manager | +London | +30 | +$90,560 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +$198,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +$132,000 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +$1,200,000 | +
Suki Burks | +Developer | +London | +53 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +$145,000 | +
Timothy Mooney | +Office Manager | +London | +37 | +$136,200 | +
Bruno Nash | +Software Engineer | +London | +38 | +$163,500 | +
Hermione Butler | +Regional Director | +London | +47 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +$103,500 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('table.display').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
div.dataTables_wrapper {
+ margin-bottom: 3em;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+DataTables has the ability to show tables with horizontal scrolling, which is very useful for when you have a wide table, but want to constrain it to a limited
+ horizontal display area. To enable x-scrolling simply set the scrollXDT
parameter to be whatever you want the container wrapper's width to be (this should be 100% in
+ almost all cases with the width being constrained by the container element).
The example below shows a table too wide for the containing element with x-scrolling enabled. The CSS option of th, td { white-space: nowrap; }
is
+ also set to have the text content of each row on a single line (otherwise the browser will line break the text to have it fit into the available area).
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "scrollX": true
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ width: 800px;
+ margin: 0 auto;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+In this example you can see DataTables doing both horizontal and vertical scrolling at the same time. Note also that pagination is enabled in this example, and + the scrolling accounts for this.
+First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "scrollY": 200,
+ "scrollX": true
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ width: 800px;
+ margin: 0 auto;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+This example shows the DataTables table body scrolling in the vertical direction. This can generally be seen as an alternative method to pagination for + displaying a large table in a fairly small vertical area, and as such pagination has been disabled here (note that this is not mandatory, it will work just fine + with pagination enabled as well!).
+ +To enable y-scrolling simply set the scrollYDT
parameter to be whatever you want the container wrapper's height to be (any CSS measurement is
+ acceptable, or just a number which is treated as pixels).
Note also that the scrollCollapseDT
option is enabled in this example. This will have the container match the height of the
+ rows shown in the table if that height is smaller than that given height by the scrollYDT
.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "scrollY": "200px",
+ "scrollCollapse": true,
+ "paging": false
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+This example is an extension of the vertical scrolling example, showing DataTables ability to be themed by jQuery UI's ThemeRoller.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "scrollY": 200,
+ "scrollCollapse": true,
+ "jQueryUI": true
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+DataTables has the option of being able to save the state of a table (its paging position, ordering state etc) so that is can be restored when the user reloads
+ a page, or comes back to the page after visiting a sub-page. This state saving ability is enabled by the stateSaveDT
option.
The built in state saving method uses the HTML5 localStorage
and sessionStorage
APIs for efficient storage of the data. Please note
+ that this means that the built in state saving option will not work with IE6/7 as these browsers do not support these APIs. Alternative options of
+ using cookies or saving the state on the server through Ajax can be used through the stateSaveCallbackDT
and stateLoadCallbackDT
+ options.
The duration for which the saved state is valid and can be used to restore the table state can be set using the stateDurationDT
+ initialisation parameter (2 hours by default). This parameter also controls if localStorage
(0 or greater) or sessionStorage
(-1) is used
+ to store the data.
The example below simply shows state saving enabled in DataTables with the stateSaveDT
option.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ stateSave: true
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+With DataTables you can alter the ordering characteristics of the table at initialisation time. Using the orderDT
initialisation parameter,
+ you can set the table to display the data in exactly the order that you want.
The orderDT
parameter is
+ an array of arrays where the first value of the inner array is the column to order on, and the second is 'asc'
+ (ascending ordering) or 'desc'
(descending ordering) as required. orderDT
is a 2D array to allow
+ multi-column ordering to be defined.
The table below is ordered (descending) by the Age column.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "order": [[ 3, "desc" ]]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+DataTables has most features enabled by default, so all you need to do to use it with your own tables is to call the construction function.
+ +Searching, ordering, paging etc goodness will be immediately added to the table, as shown in this example.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+DataTables has the ability to read data from virtually any JSON data source that can be obtained by Ajax. This can be done, in its most simple form, by setting
+ the ajaxDT
option to the
+ address of the JSON data source.
The ajaxDT
option also
+ allows for more advanced configuration such as altering how the Ajax request is made. See the ajaxDT
documentation and the other Ajax examples for further
+ information.
The example below shows DataTables loading data for a table from arrays as the data source (object parameters can also be used through the columns.dataDT
option ).
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "ajax": '../ajax/data/arrays.txt'
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+The foundation for DataTables is progressive enhancement, so it is very adept at reading table information directly from the DOM. This example shows how easy it + is to add searching, ordering and paging to your HTML table by simply running DataTables on it.
+ +For further and more complex examples of using DataTables with DOM sourced data, please refer to the basic initialisation and + advanced examples.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+DataTables can obtain data from four different fundamental sources:
+ +Which of these options is used to populate the table with data depends upon how the table is initialised. The examples in this section show these four different + data source types.
+At times you will wish to be able to create a table from dynamic information passed directly to DataTables, rather than having it read from the document. This
+ is achieved using the dataDT
+ option in the initialisation object, passing in an array of data to be used (like all other DataTables handled data, this can be arrays or objects using the
+ columns.dataDT
+ option).
A <table>
must be available on the page for DataTables to use. This examples shows the element being added by Javascript and then
+ initialising the DataTable with a set of data from a Javascript array.
The Javascript shown below is used to initialise the table shown in this example:
var dataSet = [
+ ['Trident','Internet Explorer 4.0','Win 95+','4','X'],
+ ['Trident','Internet Explorer 5.0','Win 95+','5','C'],
+ ['Trident','Internet Explorer 5.5','Win 95+','5.5','A'],
+ ['Trident','Internet Explorer 6','Win 98+','6','A'],
+ ['Trident','Internet Explorer 7','Win XP SP2+','7','A'],
+ ['Trident','AOL browser (AOL desktop)','Win XP','6','A'],
+ ['Gecko','Firefox 1.0','Win 98+ / OSX.2+','1.7','A'],
+ ['Gecko','Firefox 1.5','Win 98+ / OSX.2+','1.8','A'],
+ ['Gecko','Firefox 2.0','Win 98+ / OSX.2+','1.8','A'],
+ ['Gecko','Firefox 3.0','Win 2k+ / OSX.3+','1.9','A'],
+ ['Gecko','Camino 1.0','OSX.2+','1.8','A'],
+ ['Gecko','Camino 1.5','OSX.3+','1.8','A'],
+ ['Gecko','Netscape 7.2','Win 95+ / Mac OS 8.6-9.2','1.7','A'],
+ ['Gecko','Netscape Browser 8','Win 98SE+','1.7','A'],
+ ['Gecko','Netscape Navigator 9','Win 98+ / OSX.2+','1.8','A'],
+ ['Gecko','Mozilla 1.0','Win 95+ / OSX.1+',1,'A'],
+ ['Gecko','Mozilla 1.1','Win 95+ / OSX.1+',1.1,'A'],
+ ['Gecko','Mozilla 1.2','Win 95+ / OSX.1+',1.2,'A'],
+ ['Gecko','Mozilla 1.3','Win 95+ / OSX.1+',1.3,'A'],
+ ['Gecko','Mozilla 1.4','Win 95+ / OSX.1+',1.4,'A'],
+ ['Gecko','Mozilla 1.5','Win 95+ / OSX.1+',1.5,'A'],
+ ['Gecko','Mozilla 1.6','Win 95+ / OSX.1+',1.6,'A'],
+ ['Gecko','Mozilla 1.7','Win 98+ / OSX.1+',1.7,'A'],
+ ['Gecko','Mozilla 1.8','Win 98+ / OSX.1+',1.8,'A'],
+ ['Gecko','Seamonkey 1.1','Win 98+ / OSX.2+','1.8','A'],
+ ['Gecko','Epiphany 2.20','Gnome','1.8','A'],
+ ['Webkit','Safari 1.2','OSX.3','125.5','A'],
+ ['Webkit','Safari 1.3','OSX.3','312.8','A'],
+ ['Webkit','Safari 2.0','OSX.4+','419.3','A'],
+ ['Webkit','Safari 3.0','OSX.4+','522.1','A'],
+ ['Webkit','OmniWeb 5.5','OSX.4+','420','A'],
+ ['Webkit','iPod Touch / iPhone','iPod','420.1','A'],
+ ['Webkit','S60','S60','413','A'],
+ ['Presto','Opera 7.0','Win 95+ / OSX.1+','-','A'],
+ ['Presto','Opera 7.5','Win 95+ / OSX.2+','-','A'],
+ ['Presto','Opera 8.0','Win 95+ / OSX.2+','-','A'],
+ ['Presto','Opera 8.5','Win 95+ / OSX.2+','-','A'],
+ ['Presto','Opera 9.0','Win 95+ / OSX.3+','-','A'],
+ ['Presto','Opera 9.2','Win 88+ / OSX.3+','-','A'],
+ ['Presto','Opera 9.5','Win 88+ / OSX.3+','-','A'],
+ ['Presto','Opera for Wii','Wii','-','A'],
+ ['Presto','Nokia N800','N800','-','A'],
+ ['Presto','Nintendo DS browser','Nintendo DS','8.5','C/A<sup>1</sup>'],
+ ['KHTML','Konqureror 3.1','KDE 3.1','3.1','C'],
+ ['KHTML','Konqureror 3.3','KDE 3.3','3.3','A'],
+ ['KHTML','Konqureror 3.5','KDE 3.5','3.5','A'],
+ ['Tasman','Internet Explorer 4.5','Mac OS 8-9','-','X'],
+ ['Tasman','Internet Explorer 5.1','Mac OS 7.6-9','1','C'],
+ ['Tasman','Internet Explorer 5.2','Mac OS 8-X','1','C'],
+ ['Misc','NetFront 3.1','Embedded devices','-','C'],
+ ['Misc','NetFront 3.4','Embedded devices','-','A'],
+ ['Misc','Dillo 0.8','Embedded devices','-','X'],
+ ['Misc','Links','Text only','-','X'],
+ ['Misc','Lynx','Text only','-','X'],
+ ['Misc','IE Mobile','Windows Mobile 6','-','C'],
+ ['Misc','PSP browser','PSP','-','C'],
+ ['Other browsers','All others','-','-','U']
+];
+
+$(document).ready(function() {
+ $('#demo').html( '<table cellpadding="0" cellspacing="0" border="0" class="display" id="example"></table>' );
+
+ $('#example').dataTable( {
+ "data": dataSet,
+ "columns": [
+ { "title": "Engine" },
+ { "title": "Browser" },
+ { "title": "Platform" },
+ { "title": "Version", "class": "center" },
+ { "title": "Grade", "class": "center" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+There are many ways to get your data into DataTables, and if you are working with seriously large databases, you might want to consider using the server-side + options that DataTables provides. With server-side processing enabled, all paging, searching, ordering actions that DataTables performs are handed off to a server + where an SQL engine (or similar) can perform these actions on the large data set (after all, that's what the database engine is designed for!). As such, each draw + of the table will result in a new Ajax request being made to get the required data.
+ +Server-side processing is enabled by setting the serverSideDT
option to true
and providing an Ajax data source through the ajaxDT
option.
This example shows a very simple table, matching the other examples, but in this instance using server-side processing. For further and more complex examples of + using server-side processing, please refer to the server-side processing examples.
+Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "processing": true,
+ "serverSide": true,
+ "ajax": "../server_side/scripts/server_processing.php"
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+One of the best ways to learn how to do anything new (including software APIs!) is to get your hands dirty as quickly as possible. These examples will show you + how to perform tasks ranging from something as simple as applying DataTables to an HTML table, right the way through to doing server-side processing with + pipelining and custom plug-in functions.
+The DataTables API is designed to be fully extensible, with custom functions being very easy to add using the $.fn.dataTable.Api.register
function.
+ This function takes two arguments; the first being the name of the method to be added and its chaining hierarchy, and the second the function itself.
This example shows how a sum()
method can easily be added to the Api so you can get the sum of a column in a single line:
+ table.column().data().sum()
. Due to the chaining of the methods, this allows sum()
to very easily give the sum for any selected column,
+ and to limit the sum to just the current page, filtered data or all pages. This is done using the options for the column()DT
method and the options for its
+ selectors.
For more information about API plug-ins; creating them and their requirements, please refer to the plug-in development documentation.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
$.fn.dataTable.Api.register( 'column().data().sum()', function () {
+ return this.reduce( function (a, b) {
+ var x = parseFloat( a ) || 0;
+ var y = parseFloat( b ) || 0;
+ return x + y;
+ } );
+} );
+
+/* Init the table and fire off a call to get the hidden nodes. */
+$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ $('<button>Click to sum age in all rows</button>')
+ .prependTo( '#demo' )
+ .on( 'click', function () {
+ alert( 'Column sum is: '+ table.column( 3 ).data().sum() );
+ } );
+
+ $('<button>Click to sum age of visible rows</button>')
+ .prependTo( '#demo' )
+ .on( 'click', function () {
+ alert( 'Column sum is: '+ table.column( 3, {page:'current'} ).data().sum() );
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+This example shows how you can use information available in the DOM to order columns. Typically DataTables will read information to be ordered during it's + initialisation phase, and this will not be updated based on user interaction, so ordering on columns which have, for example, form elements in them, may not + reflect the current value of the input. To overcome this problem, you must update the data that DataTables will order on, just prior to the order. This method is + much more efficient than actually ordering using the DOM, since only one DOM query is needed for each cell to be ordered.
+ +The example below shows the first two columns as normal text with ordering as you would expect. The following columns all have a form input element of different + kinds, and the information contained within is what DataTables will perform the order on, based on the value at the time of the order.
+ +This is a fairly simple example, but it you aren't constrained to just using form input elements, you could use anything and customise your DOM queries to suit
+ yourself. You could also update the ordering live as a user in entered data into a form using an event handler calling order()DT
or draw()DT
methods.
Name | +Age | +Position | +Office | +
---|---|---|---|
Name | +Age | +Position | +Office | +
Tiger Nixon | ++ | + | + |
Garrett Winters | ++ | + | + |
Ashton Cox | ++ | + | + |
Cedric Kelly | ++ | + | + |
Airi Satou | ++ | + | + |
Brielle Williamson | ++ | + | + |
Herrod Chandler | ++ | + | + |
Rhona Davidson | ++ | + | + |
Colleen Hurst | ++ | + | + |
Sonya Frost | ++ | + | + |
Jena Gaines | ++ | + | + |
Quinn Flynn | ++ | + | + |
Charde Marshall | ++ | + | + |
Haley Kennedy | ++ | + | + |
Tatyana Fitzpatrick | ++ | + | + |
Michael Silva | ++ | + | + |
Paul Byrd | ++ | + | + |
Gloria Little | ++ | + | + |
Bradley Greer | ++ | + | + |
Dai Rios | ++ | + | + |
Jenette Caldwell | ++ | + | + |
Yuri Berry | ++ | + | + |
Caesar Vance | ++ | + | + |
Doris Wilder | ++ | + | + |
Angelica Ramos | ++ | + | + |
Gavin Joyce | ++ | + | + |
Jennifer Chang | ++ | + | + |
Brenden Wagner | ++ | + | + |
Fiona Green | ++ | + | + |
Shou Itou | ++ | + | + |
Michelle House | ++ | + | + |
Suki Burks | ++ | + | + |
Prescott Bartlett | ++ | + | + |
Gavin Cortez | ++ | + | + |
Martena Mccray | ++ | + | + |
Unity Butler | ++ | + | + |
Howard Hatfield | ++ | + | + |
Hope Fuentes | ++ | + | + |
Vivian Harrell | ++ | + | + |
Timothy Mooney | ++ | + | + |
Jackson Bradshaw | ++ | + | + |
Olivia Liang | ++ | + | + |
Bruno Nash | ++ | + | + |
Sakura Yamamoto | ++ | + | + |
Thor Walton | ++ | + | + |
Finn Camacho | ++ | + | + |
Serge Baldwin | ++ | + | + |
Zenaida Frank | ++ | + | + |
Zorita Serrano | ++ | + | + |
Jennifer Acosta | ++ | + | + |
Cara Stevens | ++ | + | + |
Hermione Butler | ++ | + | + |
Lael Greer | ++ | + | + |
Jonas Alexander | ++ | + | + |
Shad Decker | ++ | + | + |
Michael Bruce | ++ | + | + |
Donna Snider | ++ | + | + |
The Javascript shown below is used to initialise the table shown in this example:
/* Create an array with the values of all the input boxes in a column */
+$.fn.dataTable.ext.order['dom-text'] = function ( settings, col )
+{
+ return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
+ return $('input', td).val();
+ } );
+}
+
+/* Create an array with the values of all the input boxes in a column, parsed as numbers */
+$.fn.dataTable.ext.order['dom-text-numeric'] = function ( settings, col )
+{
+ return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
+ return $('input', td).val() * 1;
+ } );
+}
+
+/* Create an array with the values of all the select options in a column */
+$.fn.dataTable.ext.order['dom-select'] = function ( settings, col )
+{
+ return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
+ return $('select', td).val();
+ } );
+}
+
+/* Create an array with the values of all the checkboxes in a column */
+$.fn.dataTable.ext.order['dom-checkbox'] = function ( settings, col )
+{
+ return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
+ return $('input', td).prop('checked') ? '1' : '0';
+ } );
+}
+
+/* Initialise the table with the required column ordering data types */
+$(document).ready(function() {
+ $('#example').dataTable( {
+ "columns": [
+ null,
+ { "orderDataType": "dom-text-numeric" },
+ { "orderDataType": "dom-text", type: 'string' },
+ { "orderDataType": "dom-select" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+While DataTables has a wide range of options and data type support built in, it can never cater for every type of data out of the box. For this reason, + DataTables exposes an extension API which allows you, the developers using DataTables, to add support for your own data types, searching, ordering and feature + plug-ins.
+ +The examples in this section show how plug-ins can be used and developed for DataTables.
+There may be occasions when you wish to search data presented to the end user in your own manner, common examples are number range search (in between two
+ numbers) and date range search. DataTables provide an API method to add your own search functions, $.fn.dataTable.ext.search
. This is an array of
+ functions (push your own onto it) which will will be run at table draw time to see if a particular row should be included or not.
This example shows a search being performed on the age column in the data, based upon two inputs.
+Minimum age: | ++ |
Maximum age: | ++ |
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this example:
/* Custom filtering function which will search data in column four between two values */
+$.fn.dataTable.ext.search.push(
+ function( settings, data, dataIndex ) {
+ var min = parseInt( $('#min').val(), 10 );
+ var max = parseInt( $('#max').val(), 10 );
+ var age = parseFloat( data[3] ) || 0; // use data for the age column
+
+ if ( ( isNaN( min ) && isNaN( max ) ) ||
+ ( isNaN( min ) && age <= max ) ||
+ ( min <= age && isNaN( max ) ) ||
+ ( min <= age && age <= max ) )
+ {
+ return true;
+ }
+ return false;
+ }
+);
+
+$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ // Event listener to the two range filtering inputs to redraw on input
+ $('#min, #max').keyup( function() {
+ table.draw();
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Although DataTables will automatically order data from a number of different data types using the built in methods, When dealing with more complex formatted + data, it can be desirable to define the ordering order yourself. Using plug-in ordering functions, you have have DataTables sort data in any manner you wish.
+ +Formatted data of a particular kind can be automatically detected and a suitable ordering plug-in assigned to it by making use of DataTables' plug-in type + detection abilities. For complete information about type detection and ordering plug-ins; creating them and their requirements, please refer to the plug-in + development documentation.
+ +This example shows ordering with using an enumerated type.
+ +A wide variety of ready made ordering plug-ins can be found on the DataTables plug-ins page.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +Low | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +Low | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +Low | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +Medium | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +Low | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +Medium | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +Low | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +Low | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +Low | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +Low | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +Low | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +Low | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +Medium | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +Low | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +Medium | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +Low | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +High | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +Low | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +Low | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +Low | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +Low | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +High | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +Low | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +Low | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +High | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +Low | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +Medium | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +Low | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +High | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +Low | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +Low | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +Low | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +Low | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +Low | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +Low | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +Low | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +Low | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +Low | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +Medium | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +Low | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +Medium | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +Low | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +Low | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +Low | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +Low | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +Low | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +Low | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +Low | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +Low | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +Low | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +Low | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +Medium | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +Low | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +Low | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +Low | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +Low | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +Low | +
The Javascript shown below is used to initialise the table shown in this example:
$.fn.dataTable.ext.type.detect.unshift(
+ function ( d ) {
+ return d === 'Low' || d === 'Medium' || d === 'High' ?
+ 'salary-grade' :
+ null;
+ }
+);
+
+$.fn.dataTable.ext.type.order['salary-grade-pre'] = function ( d ) {
+ switch ( d ) {
+ case 'Low': return 1;
+ case 'Medium': return 2;
+ case 'High': return 3;
+ }
+ return 0;
+};
+
+
+$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Although DataTables will order a number of data types using the built in methods, When dealing with more complex formatted data, it can be desirable to define + the ordering order yourself. Using plug-in ordering functions, you have have DataTables order data in any manner you wish.
+ +This is done by using the columns.typeDT
parameter, in combination with a ordering plug-in. The ordering plug-in can be be of any
+ level of complexity (natural ordering for example can be fairly complex while also very powerful), and is defined by attaching to the
+ $.fn.dataTable.ext.type.order
object. For more information about ordering plug-ins; creating them and their requirements, please refer to the plug-in
+ development documentation.
This example shows ordering with using an enumerated type.
+ +A wide variety of ready made ordering plug-ins can be found on the DataTables plug-ins page.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +Low | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +Low | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +Low | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +Medium | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +Low | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +Medium | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +Low | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +Low | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +Low | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +Low | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +Low | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +Low | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +Medium | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +Low | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +Medium | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +Low | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +High | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +Low | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +Low | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +Low | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +Low | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +High | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +Low | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +Low | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +High | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +Low | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +Medium | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +Low | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +High | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +Low | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +Low | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +Low | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +Low | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +Low | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +Low | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +Low | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +Low | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +Low | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +Medium | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +Low | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +Medium | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +Low | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +Low | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +Low | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +Low | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +Low | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +Low | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +Low | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +Low | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +Low | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +Low | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +Medium | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +Low | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +Low | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +Low | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +Low | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +Low | +
The Javascript shown below is used to initialise the table shown in this example:
$.fn.dataTable.ext.type.order['salary-grade-pre'] = function ( d ) {
+ switch ( d ) {
+ case 'Low': return 1;
+ case 'Medium': return 2;
+ case 'High': return 3;
+ }
+ return 0;
+};
+
+$(document).ready(function() {
+ $('#example').dataTable( {
+ "columnDefs": [ {
+ "type": "salary-grade",
+ "targets": -1
+ } ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+\t\t\t'+
+ escapeHtml( table )+
+ '
'
+ );
+ //SyntaxHighlighter.highlight({}, $('#display-init-html')[0]);
+
+ // Allow the demo code to run if DT 1.9 is used
+ if ( dt110 ) {
+ // json
+ var ajaxTab = $('ul.tabs li').eq(3).css('display', 'none');
+
+ $(document).on( 'init.dt', function ( e, settings ) {
+ var api = new $.fn.dataTable.Api( settings );
+
+ var show = function ( str ) {
+ ajaxTab.css( 'display', 'block' );
+ $('div.tabs div.ajax code').remove();
+ $('div.tabs div.ajax div.syntaxhighlighter').remove();
+
+ // Old IE :-|
+ try {
+ str = JSON.stringify( str, null, 2 );
+ } catch ( e ) {}
+
+ $('div.tabs div.ajax').append(
+ ''+str+'
'
+ );
+ SyntaxHighlighter.highlight( {}, $('div.tabs div.ajax code')[0] );
+ };
+
+ // First draw
+ var json = api.ajax.json();
+ if ( json ) {
+ show( json );
+ }
+
+ // Subsequent draws
+ api.on( 'xhr.dt', function ( e, settings, json ) {
+ show( json );
+ } );
+ } );
+
+ // php
+ var phpTab = $('ul.tabs li').eq(4).css('display', 'none');
+
+ $(document).on( 'init.dt.demoSSP', function ( e, settings ) {
+ if ( settings.oFeatures.bServerSide ) {
+ if ( $.isFunction( settings.ajax ) ) {
+ return;
+ }
+ $.ajax( {
+ url: '../resources/examples.php',
+ data: {
+ src: settings.sAjaxSource || settings.ajax.url || settings.ajax
+ },
+ dataType: 'text',
+ type: 'post',
+ success: function ( txt ) {
+ phpTab.css( 'display', 'block' );
+ $('div.tabs div.php').append(
+ ''+txt+'
'
+ );
+ SyntaxHighlighter.highlight( {}, $('div.tabs div.php code')[0] );
+ }
+ } );
+ }
+ } );
+ }
+ else {
+ $('ul.tabs li').eq(3).css('display', 'none');
+ $('ul.tabs li').eq(4).css('display', 'none');
+ }
+
+ // Tabs
+ $('ul.tabs').on( 'click', 'li', function () {
+ $('ul.tabs li.active').removeClass('active');
+ $(this).addClass('active');
+
+ $('div.tabs>div')
+ .css('display', 'none')
+ .eq( $(this).index() ).css('display', 'block');
+ } );
+ $('ul.tabs li.active').click();
+} );
+
+
+
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/resources/details_close.png b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/resources/details_close.png
new file mode 100644
index 0000000..9c7d698
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/resources/details_close.png
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/resources/details_open.png b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/resources/details_open.png
new file mode 100644
index 0000000..c0edf44
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/resources/details_open.png
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/resources/examples.php b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/resources/examples.php
new file mode 100644
index 0000000..2d98594
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/resources/examples.php
@@ -0,0 +1,10 @@
+ MIT License
+ */
+var XRegExp;XRegExp=XRegExp||function(n){"use strict";function v(n,i,r){var u;for(u in t.prototype)t.prototype.hasOwnProperty(u)&&(n[u]=t.prototype[u]);return n.xregexp={captureNames:i,isNative:!!r},n}function g(n){return(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.extended?"x":"")+(n.sticky?"y":"")}function o(n,r,u){if(!t.isRegExp(n))throw new TypeError("type RegExp expected");var f=i.replace.call(g(n)+(r||""),h,"");return u&&(f=i.replace.call(f,new RegExp("["+u+"]+","g"),"")),n=n.xregexp&&!n.xregexp.isNative?v(t(n.source,f),n.xregexp.captureNames?n.xregexp.captureNames.slice(0):null):v(new RegExp(n.source,f),null,!0)}function a(n,t){var i=n.length;if(Array.prototype.lastIndexOf)return n.lastIndexOf(t);while(i--)if(n[i]===t)return i;return-1}function s(n,t){return Object.prototype.toString.call(n).toLowerCase()==="[object "+t+"]"}function d(n){return n=n||{},n==="all"||n.all?n={natives:!0,extensibility:!0}:s(n,"string")&&(n=t.forEach(n,/[^\s,]+/,function(n){this[n]=!0},{})),n}function ut(n,t,i,u){var o=p.length,s=null,e,f;y=!0;try{while(o--)if(f=p[o],(f.scope==="all"||f.scope===i)&&(!f.trigger||f.trigger.call(u))&&(f.pattern.lastIndex=t,e=r.exec.call(f.pattern,n),e&&e.index===t)){s={output:f.handler.call(u,e,i),match:e};break}}catch(h){throw h;}finally{y=!1}return s}function b(n){t.addToken=c[n?"on":"off"],f.extensibility=n}function tt(n){RegExp.prototype.exec=(n?r:i).exec,RegExp.prototype.test=(n?r:i).test,String.prototype.match=(n?r:i).match,String.prototype.replace=(n?r:i).replace,String.prototype.split=(n?r:i).split,f.natives=n}var t,c,u,f={natives:!1,extensibility:!1},i={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},r={},k={},p=[],e="default",rt="class",it={"default":/^(?:\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|\(\?[:=!]|[?*+]\?|{\d+(?:,\d*)?}\??)/,"class":/^(?:\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S]))/},et=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,h=/([\s\S])(?=[\s\S]*\1)/g,nt=/^(?:[?*+]|{\d+(?:,\d*)?})\??/,ft=i.exec.call(/()??/,"")[1]===n,l=RegExp.prototype.sticky!==n,y=!1,w="gim"+(l?"y":"");return t=function(r,u){if(t.isRegExp(r)){if(u!==n)throw new TypeError("can't supply flags when constructing one RegExp from another");return o(r)}if(y)throw new Error("can't call the XRegExp constructor within token definition functions");var l=[],a=e,b={hasNamedCapture:!1,captureNames:[],hasFlag:function(n){return u.indexOf(n)>-1}},f=0,c,s,p;if(r=r===n?"":String(r),u=u===n?"":String(u),i.match.call(u,h))throw new SyntaxError("invalid duplicate regular expression flag");for(r=i.replace.call(r,/^\(\?([\w$]+)\)/,function(n,t){if(i.test.call(/[gy]/,t))throw new SyntaxError("can't use flag g or y in mode modifier");return u=i.replace.call(u+t,h,""),""}),t.forEach(u,/[\s\S]/,function(n){if(w.indexOf(n[0])<0)throw new SyntaxError("invalid regular expression flag "+n[0]);});f{ target: DOMElement, params: Object }
objects.
+ */
+ findElements: function(globalParams, element)
+ {
+ var elements = element ? [element] : toArray(document.getElementsByTagName(sh.config.tagName)),
+ conf = sh.config,
+ result = []
+ ;
+
+ // support for feature
+ if (conf.useScriptTags)
+ elements = elements.concat(getSyntaxHighlighterScriptTags());
+
+ if (elements.length === 0)
+ return result;
+
+ for (var i = 0, l = elements.length; i < l; i++)
+ {
+ var item = {
+ target: elements[i],
+ // local params take precedence over globals
+ params: merge(globalParams, parseParams(elements[i].className))
+ };
+
+ if (item.params['brush'] == null)
+ continue;
+
+ result.push(item);
+ }
+
+ return result;
+ },
+
+ /**
+ * Shorthand to highlight all elements on the page that are marked as
+ * SyntaxHighlighter source code.
+ *
+ * @param {Object} globalParams Optional parameters which override element's
+ * parameters. Only used if element is specified.
+ *
+ * @param {Object} element Optional element to highlight. If none is
+ * provided, all elements in the current document
+ * are highlighted.
+ */
+ highlight: function(globalParams, element)
+ {
+ var elements = this.findElements(globalParams, element),
+ propertyName = 'innerHTML',
+ highlighter = null,
+ conf = sh.config
+ ;
+
+ if (elements.length === 0)
+ return;
+
+ for (var i = 0, l = elements.length; i < l; i++)
+ {
+ var element = elements[i],
+ target = element.target,
+ params = element.params,
+ brushName = params.brush,
+ code
+ ;
+
+ if (brushName == null)
+ continue;
+
+ // Instantiate a brush
+ if (params['html-script'] == 'true' || sh.defaults['html-script'] == true)
+ {
+ highlighter = new sh.HtmlScript(brushName);
+ brushName = 'htmlscript';
+ }
+ else
+ {
+ var brush = findBrush(brushName);
+
+ if (brush)
+ highlighter = new brush();
+ else
+ continue;
+ }
+
+ code = target[propertyName];
+
+ // remove CDATA from tags if it's present
+ if (conf.useScriptTags)
+ code = stripCData(code);
+
+ // Inject title if the attribute is present
+ if ((target.title || '') != '')
+ params.title = target.title;
+
+ params['brush'] = brushName;
+ highlighter.init(params);
+ element = highlighter.getDiv(code);
+
+ // carry over ID
+ if ((target.id || '') != '')
+ element.id = target.id;
+
+ target.parentNode.replaceChild(element, target);
+ }
+ },
+
+ /**
+ * Main entry point for the SyntaxHighlighter.
+ * @param {Object} params Optional params to apply to all highlighted elements.
+ */
+ all: function(params)
+ {
+ attachEvent(
+ window,
+ 'load',
+ function() { sh.highlight(params); }
+ );
+ }
+}; // end of sh
+
+/**
+ * Checks if target DOM elements has specified CSS class.
+ * @param {DOMElement} target Target DOM element to check.
+ * @param {String} className Name of the CSS class to check for.
+ * @return {Boolean} Returns true if class name is present, false otherwise.
+ */
+function hasClass(target, className)
+{
+ return target.className.indexOf(className) != -1;
+};
+
+/**
+ * Adds CSS class name to the target DOM element.
+ * @param {DOMElement} target Target DOM element.
+ * @param {String} className New CSS class to add.
+ */
+function addClass(target, className)
+{
+ if (!hasClass(target, className))
+ target.className += ' ' + className;
+};
+
+/**
+ * Removes CSS class name from the target DOM element.
+ * @param {DOMElement} target Target DOM element.
+ * @param {String} className CSS class to remove.
+ */
+function removeClass(target, className)
+{
+ target.className = target.className.replace(className, '');
+};
+
+/**
+ * Converts the source to array object. Mostly used for function arguments and
+ * lists returned by getElementsByTagName() which aren't Array objects.
+ * @param {List} source Source list.
+ * @return {Array} Returns array.
+ */
+function toArray(source)
+{
+ var result = [];
+
+ for (var i = 0, l = source.length; i < l; i++)
+ result.push(source[i]);
+
+ return result;
+};
+
+/**
+ * Splits block of text into lines.
+ * @param {String} block Block of text.
+ * @return {Array} Returns array of lines.
+ */
+function splitLines(block)
+{
+ return block.split(/\r?\n/);
+}
+
+/**
+ * Generates HTML ID for the highlighter.
+ * @param {String} highlighterId Highlighter ID.
+ * @return {String} Returns HTML ID.
+ */
+function getHighlighterId(id)
+{
+ var prefix = 'highlighter_';
+ return id.indexOf(prefix) == 0 ? id : prefix + id;
+};
+
+/**
+ * Finds Highlighter instance by ID.
+ * @param {String} highlighterId Highlighter ID.
+ * @return {Highlighter} Returns instance of the highlighter.
+ */
+function getHighlighterById(id)
+{
+ return sh.vars.highlighters[getHighlighterId(id)];
+};
+
+/**
+ * Finds highlighter's DIV container.
+ * @param {String} highlighterId Highlighter ID.
+ * @return {Element} Returns highlighter's DIV element.
+ */
+function getHighlighterDivById(id)
+{
+ return document.getElementById(getHighlighterId(id));
+};
+
+/**
+ * Stores highlighter so that getHighlighterById() can do its thing. Each
+ * highlighter must call this method to preserve itself.
+ * @param {Highilghter} highlighter Highlighter instance.
+ */
+function storeHighlighter(highlighter)
+{
+ sh.vars.highlighters[getHighlighterId(highlighter.id)] = highlighter;
+};
+
+/**
+ * Looks for a child or parent node which has specified classname.
+ * Equivalent to jQuery's $(container).find(".className")
+ * @param {Element} target Target element.
+ * @param {String} search Class name or node name to look for.
+ * @param {Boolean} reverse If set to true, will go up the node tree instead of down.
+ * @return {Element} Returns found child or parent element on null.
+ */
+function findElement(target, search, reverse /* optional */)
+{
+ if (target == null)
+ return null;
+
+ var nodes = reverse != true ? target.childNodes : [ target.parentNode ],
+ propertyToFind = { '#' : 'id', '.' : 'className' }[search.substr(0, 1)] || 'nodeName',
+ expectedValue,
+ found
+ ;
+
+ expectedValue = propertyToFind != 'nodeName'
+ ? search.substr(1)
+ : search.toUpperCase()
+ ;
+
+ // main return of the found node
+ if ((target[propertyToFind] || '').indexOf(expectedValue) != -1)
+ return target;
+
+ for (var i = 0, l = nodes.length; nodes && i < l && found == null; i++)
+ found = findElement(nodes[i], search, reverse);
+
+ return found;
+};
+
+/**
+ * Looks for a parent node which has specified classname.
+ * This is an alias to findElement(container, className, true)
.
+ * @param {Element} target Target element.
+ * @param {String} className Class name to look for.
+ * @return {Element} Returns found parent element on null.
+ */
+function findParentElement(target, className)
+{
+ return findElement(target, className, true);
+};
+
+/**
+ * Finds an index of element in the array.
+ * @ignore
+ * @param {Object} searchElement
+ * @param {Number} fromIndex
+ * @return {Number} Returns index of element if found; -1 otherwise.
+ */
+function indexOf(array, searchElement, fromIndex)
+{
+ fromIndex = Math.max(fromIndex || 0, 0);
+
+ for (var i = fromIndex, l = array.length; i < l; i++)
+ if(array[i] == searchElement)
+ return i;
+
+ return -1;
+};
+
+/**
+ * Generates a unique element ID.
+ */
+function guid(prefix)
+{
+ return (prefix || '') + Math.round(Math.random() * 1000000).toString();
+};
+
+/**
+ * Merges two objects. Values from obj2 override values in obj1.
+ * Function is NOT recursive and works only for one dimensional objects.
+ * @param {Object} obj1 First object.
+ * @param {Object} obj2 Second object.
+ * @return {Object} Returns combination of both objects.
+ */
+function merge(obj1, obj2)
+{
+ var result = {}, name;
+
+ for (name in obj1)
+ result[name] = obj1[name];
+
+ for (name in obj2)
+ result[name] = obj2[name];
+
+ return result;
+};
+
+/**
+ * Attempts to convert string to boolean.
+ * @param {String} value Input string.
+ * @return {Boolean} Returns true if input was "true", false if input was "false" and value otherwise.
+ */
+function toBoolean(value)
+{
+ var result = { "true" : true, "false" : false }[value];
+ return result == null ? value : result;
+};
+
+/**
+ * Opens up a centered popup window.
+ * @param {String} url URL to open in the window.
+ * @param {String} name Popup name.
+ * @param {int} width Popup width.
+ * @param {int} height Popup height.
+ * @param {String} options window.open() options.
+ * @return {Window} Returns window instance.
+ */
+function popup(url, name, width, height, options)
+{
+ var x = (screen.width - width) / 2,
+ y = (screen.height - height) / 2
+ ;
+
+ options += ', left=' + x +
+ ', top=' + y +
+ ', width=' + width +
+ ', height=' + height
+ ;
+ options = options.replace(/^,/, '');
+
+ var win = window.open(url, name, options);
+ win.focus();
+ return win;
+};
+
+/**
+ * Adds event handler to the target object.
+ * @param {Object} obj Target object.
+ * @param {String} type Name of the event.
+ * @param {Function} func Handling function.
+ */
+function attachEvent(obj, type, func, scope)
+{
+ function handler(e)
+ {
+ e = e || window.event;
+
+ if (!e.target)
+ {
+ e.target = e.srcElement;
+ e.preventDefault = function()
+ {
+ this.returnValue = false;
+ };
+ }
+
+ func.call(scope || window, e);
+ };
+
+ if (obj.attachEvent)
+ {
+ obj.attachEvent('on' + type, handler);
+ }
+ else
+ {
+ obj.addEventListener(type, handler, false);
+ }
+};
+
+/**
+ * Displays an alert.
+ * @param {String} str String to display.
+ */
+function alert(str)
+{
+ window.alert(sh.config.strings.alert + str);
+};
+
+/**
+ * Finds a brush by its alias.
+ *
+ * @param {String} alias Brush alias.
+ * @param {Boolean} showAlert Suppresses the alert if false.
+ * @return {Brush} Returns bursh constructor if found, null otherwise.
+ */
+function findBrush(alias, showAlert)
+{
+ var brushes = sh.vars.discoveredBrushes,
+ result = null
+ ;
+
+ if (brushes == null)
+ {
+ brushes = {};
+
+ // Find all brushes
+ for (var brush in sh.brushes)
+ {
+ var info = sh.brushes[brush],
+ aliases = info.aliases
+ ;
+
+ if (aliases == null)
+ continue;
+
+ // keep the brush name
+ info.brushName = brush.toLowerCase();
+
+ for (var i = 0, l = aliases.length; i < l; i++)
+ brushes[aliases[i]] = brush;
+ }
+
+ sh.vars.discoveredBrushes = brushes;
+ }
+
+ result = sh.brushes[brushes[alias]];
+
+ if (result == null && showAlert)
+ alert(sh.config.strings.noBrush + alias);
+
+ return result;
+};
+
+/**
+ * Executes a callback on each line and replaces each line with result from the callback.
+ * @param {Object} str Input string.
+ * @param {Object} callback Callback function taking one string argument and returning a string.
+ */
+function eachLine(str, callback)
+{
+ var lines = splitLines(str);
+
+ for (var i = 0, l = lines.length; i < l; i++)
+ lines[i] = callback(lines[i], i);
+
+ // include \r to enable copy-paste on windows (ie8) without getting everything on one line
+ return lines.join('\r\n');
+};
+
+/**
+ * This is a special trim which only removes first and last empty lines
+ * and doesn't affect valid leading space on the first line.
+ *
+ * @param {String} str Input string
+ * @return {String} Returns string without empty first and last lines.
+ */
+function trimFirstAndLastLines(str)
+{
+ return str.replace(/^[ ]*[\n]+|[\n]*[ ]*$/g, '');
+};
+
+/**
+ * Parses key/value pairs into hash object.
+ *
+ * Understands the following formats:
+ * - name: word;
+ * - name: [word, word];
+ * - name: "string";
+ * - name: 'string';
+ *
+ * For example:
+ * name1: value; name2: [value, value]; name3: 'value'
+ *
+ * @param {String} str Input string.
+ * @return {Object} Returns deserialized object.
+ */
+function parseParams(str)
+{
+ var match,
+ result = {},
+ arrayRegex = XRegExp("^\\[(?
tag with given style applied to it.
+ *
+ * @param {String} str Input string.
+ * @param {String} css Style name to apply to the string.
+ * @return {String} Returns input string with each line surrounded by tag.
+ */
+function wrapLinesWithCode(str, css)
+{
+ if (str == null || str.length == 0 || str == '\n')
+ return str;
+
+ str = str.replace(/... to them so that
+ // leading spaces aren't included.
+ if (css != null)
+ str = eachLine(str, function(line)
+ {
+ if (line.length == 0)
+ return '';
+
+ var spaces = '';
+
+ line = line.replace(/^( | )+/, function(s)
+ {
+ spaces = s;
+ return '';
+ });
+
+ if (line.length == 0)
+ return spaces;
+
+ return spaces + '' + line + '
';
+ });
+
+ return str;
+};
+
+/**
+ * Pads number with zeros until it's length is the same as given length.
+ *
+ * @param {Number} number Number to pad.
+ * @param {Number} length Max string length with.
+ * @return {String} Returns a string padded with proper amount of '0'.
+ */
+function padNumber(number, length)
+{
+ var result = number.toString();
+
+ while (result.length < length)
+ result = '0' + result;
+
+ return result;
+};
+
+/**
+ * Replaces tabs with spaces.
+ *
+ * @param {String} code Source code.
+ * @param {Number} tabSize Size of the tab.
+ * @return {String} Returns code with all tabs replaces by spaces.
+ */
+function processTabs(code, tabSize)
+{
+ var tab = '';
+
+ for (var i = 0; i < tabSize; i++)
+ tab += ' ';
+
+ return code.replace(/\t/g, tab);
+};
+
+/**
+ * Replaces tabs with smart spaces.
+ *
+ * @param {String} code Code to fix the tabs in.
+ * @param {Number} tabSize Number of spaces in a column.
+ * @return {String} Returns code with all tabs replaces with roper amount of spaces.
+ */
+function processSmartTabs(code, tabSize)
+{
+ var lines = splitLines(code),
+ tab = '\t',
+ spaces = ''
+ ;
+
+ // Create a string with 1000 spaces to copy spaces from...
+ // It's assumed that there would be no indentation longer than that.
+ for (var i = 0; i < 50; i++)
+ spaces += ' '; // 20 spaces * 50
+
+ // This function inserts specified amount of spaces in the string
+ // where a tab is while removing that given tab.
+ function insertSpaces(line, pos, count)
+ {
+ return line.substr(0, pos)
+ + spaces.substr(0, count)
+ + line.substr(pos + 1, line.length) // pos + 1 will get rid of the tab
+ ;
+ };
+
+ // Go through all the lines and do the 'smart tabs' magic.
+ code = eachLine(code, function(line)
+ {
+ if (line.indexOf(tab) == -1)
+ return line;
+
+ var pos = 0;
+
+ while ((pos = line.indexOf(tab)) != -1)
+ {
+ // This is pretty much all there is to the 'smart tabs' logic.
+ // Based on the position within the line and size of a tab,
+ // calculate the amount of spaces we need to insert.
+ var spaces = tabSize - pos % tabSize;
+ line = insertSpaces(line, pos, spaces);
+ }
+
+ return line;
+ });
+
+ return code;
+};
+
+/**
+ * Performs various string fixes based on configuration.
+ */
+function fixInputString(str)
+{
+ var br = /regexList
collection.
+ * @return {Array} Returns a list of Match objects.
+ */
+function getMatches(code, regexInfo)
+{
+ function defaultAdd(match, regexInfo)
+ {
+ return match[0];
+ };
+
+ var index = 0,
+ match = null,
+ matches = [],
+ func = regexInfo.func ? regexInfo.func : defaultAdd
+ pos = 0
+ ;
+
+ while((match = XRegExp.exec(code, regexInfo.regex, pos)) != null)
+ {
+ var resultMatch = func(match, regexInfo);
+
+ if (typeof(resultMatch) == 'string')
+ resultMatch = [new sh.Match(resultMatch, match.index, regexInfo.css)];
+
+ matches = matches.concat(resultMatch);
+ pos = match.index + match[0].length;
+ }
+
+ return matches;
+};
+
+/**
+ * Turns all URLs in the code into tags.
+ * @param {String} code Input code.
+ * @return {String} Returns code with tags.
+ */
+function processUrls(code)
+{
+ var gt = /(.*)((>|<).*)/;
+
+ return code.replace(sh.regexLib.url, function(m)
+ {
+ var suffix = '',
+ match = null
+ ;
+
+ // We include < and > in the URL for the common cases like ' + spaces + '
' : '') + line
+ );
+ }
+
+ return html;
+ },
+
+ /**
+ * Returns HTML for the table title or empty string if title is null.
+ */
+ getTitleHtml: function(title)
+ {
+ return title ? '' + this.getLineNumbersHtml(code) + ' | ' : '') + + ''
+ + ' '
+ + html
+ + ' '
+ + ' | '
+ + '
.*?)" +
+ "(?" + regex.end + ")",
+ "sgi"
+ )
+ };
+ }
+}; // end of Highlighter
+
+return sh;
+}(); // end of anonymous function
+
+// CommonJS
+typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter : null;
+
+
+
+// JS brush
+;(function()
+{
+ // CommonJS
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
+
+ function Brush()
+ {
+ var keywords = 'break case catch class continue ' +
+ 'default delete do else enum export extends false ' +
+ 'for function if implements import in instanceof ' +
+ 'interface let new null package private protected ' +
+ 'static return super switch ' +
+ 'this throw true try typeof var while with yield';
+
+ var r = SyntaxHighlighter.regexLib;
+
+ this.regexList = [
+ { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
+ { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
+ { regex: r.singleLineCComments, css: 'comments' }, // one line comments
+ { regex: r.multiLineCComments, css: 'comments' }, // multiline comments
+ { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
+ ];
+
+ this.forHtmlScript(r.scriptScriptTags);
+ this.langLabel = "Javascript";
+ };
+
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
+ Brush.aliases = ['js', 'jscript', 'javascript', 'json'];
+
+ SyntaxHighlighter.brushes.JScript = Brush;
+
+ // CommonJS
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
+})();
+
+
+
+// XML / HTML brush
+;(function()
+{
+ // CommonJS
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
+
+ function Brush()
+ {
+ function process(match, regexInfo)
+ {
+ var constructor = SyntaxHighlighter.Match,
+ code = match[0],
+ tag = XRegExp.exec(code, XRegExp('(<|<)[\\s\\/\\?!]*(?[:\\w-\\.]+)', 'xg')),
+ result = []
+ ;
+
+ if (match.attributes != null)
+ {
+ var attributes,
+ pos = 0,
+ regex = XRegExp('(? [\\w:.-]+)' +
+ '\\s*=\\s*' +
+ '(? ".*?"|\'.*?\'|\\w+)',
+ 'xg');
+
+ while ((attributes = XRegExp.exec(code, regex, pos)) != null)
+ {
+ result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));
+ result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string'));
+ pos = attributes.index + attributes[0].length;
+ }
+ }
+
+ if (tag != null)
+ result.push(
+ new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
+ );
+
+ return result;
+ }
+
+ this.regexList = [
+ { regex: XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, //
+ { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, //
+ { regex: XRegExp('(<|<)[\\s\\/\\?!]*(\\w+)(?.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process }
+ ];
+ this.langLabel = "HTML";
+ };
+
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
+ Brush.aliases = ['xml', 'xhtml', 'xslt', 'html', 'plist'];
+
+ SyntaxHighlighter.brushes.Xml = Brush;
+
+ // CommonJS
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
+})();
+
+
+
+// CSS brush
+;(function()
+{
+ // CommonJS
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
+
+ function Brush()
+ {
+ function getKeywordsCSS(str)
+ {
+ return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
+ };
+
+ function getValuesCSS(str)
+ {
+ return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
+ };
+
+ var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
+ 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
+ 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
+ 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
+ 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
+ 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
+ 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
+ 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
+ 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
+ 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
+ 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
+ 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
+ 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
+ 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
+
+ var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
+ 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
+ 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
+ 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
+ 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
+ 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
+ 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
+ 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
+ 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
+ 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
+ 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
+ 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
+ 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
+ 'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
+
+ var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
+
+ this.regexList = [
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
+ { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
+ { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
+ { regex: /!important/g, css: 'color3' }, // !important
+ { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
+ { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
+ { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
+ ];
+
+ this.forHtmlScript({
+ left: /(<|<)\s*style.*?(>|>)/gi,
+ right: /(<|<)\/\s*style\s*(>|>)/gi
+ });
+ this.langLabel = "CSS";
+ };
+
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
+ Brush.aliases = ['css'];
+
+ SyntaxHighlighter.brushes.CSS = Brush;
+
+ // CommonJS
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
+})();
+
+
+
+// PHP brush
+;(function()
+{
+ // CommonJS
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
+
+ function Brush()
+ {
+ var funcs = 'abs acos acosh addcslashes addslashes ' +
+ 'array_change_key_case array_chunk array_combine array_count_values array_diff '+
+ 'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
+ 'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
+ 'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
+ 'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
+ 'array_push array_rand array_reduce array_reverse array_search array_shift '+
+ 'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
+ 'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
+ 'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
+ 'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
+ 'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
+ 'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
+ 'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
+ 'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
+ 'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
+ 'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
+ 'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
+ 'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
+ 'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
+ 'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
+ 'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
+ 'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
+ 'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
+ 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
+ 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
+ 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
+ 'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
+ 'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+
+ 'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
+ 'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
+ 'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
+ 'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
+ 'strtoupper strtr strval substr substr_compare';
+
+ var keywords = 'abstract and array as break case catch cfunction class clone const continue declare default die do ' +
+ 'else elseif enddeclare endfor endforeach endif endswitch endwhile extends final finally for foreach ' +
+ 'function global goto if implements include include_once interface instanceof insteadof namespace new ' +
+ 'old_function or private protected public return require require_once static switch ' +
+ 'trait throw try use var while xor yield ';
+
+ var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
+
+ this.regexList = [
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
+ { regex: /\$\w+/g, css: 'variable' }, // variables
+ { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
+ { regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
+ ];
+
+ this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
+ this.langLabel = "PHP";
+ };
+
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
+ Brush.aliases = ['php'];
+
+ SyntaxHighlighter.brushes.Php = Brush;
+
+ // CommonJS
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
+})();
+
+
+;(function()
+{
+ // CommonJS
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
+
+ function Brush()
+ {
+ var funcs = 'abs avg case cast coalesce convert count current_timestamp ' +
+ 'current_user day isnull left lower month nullif replace right ' +
+ 'session_user space substring sum system_user upper user year';
+
+ var keywords = 'absolute action add after alter as asc at authorization begin bigint ' +
+ 'binary bit by cascade char character check checkpoint close collate ' +
+ 'column commit committed connect connection constraint contains continue ' +
+ 'create cube current current_date current_time cursor database date ' +
+ 'deallocate dec decimal declare default delete desc distinct double drop ' +
+ 'dynamic else end end-exec escape except exec execute false fetch first ' +
+ 'float for force foreign forward free from full function global goto grant ' +
+ 'group grouping having hour ignore index inner insensitive insert instead ' +
+ 'int integer intersect into is isolation key last level load local max min ' +
+ 'minute modify move name national nchar next no numeric of off on only ' +
+ 'open option order out output partial password precision prepare primary ' +
+ 'prior privileges procedure public read real references relative repeatable ' +
+ 'restrict return returns revoke rollback rollup rows rule schema scroll ' +
+ 'second section select sequence serializable set size smallint static ' +
+ 'statistics table temp temporary then time timestamp to top transaction ' +
+ 'translation trigger true truncate uncommitted union unique update values ' +
+ 'varchar varying view when where with work';
+
+ var operators = 'all and any between cross in join like not null or outer some';
+
+ this.regexList = [
+ { regex: /--(.*)$/gm, css: 'comments' }, // one line comments
+ { regex: /\/\*([^\*][\s\S]*?)?\*\//gm, css: 'comments' }, // multi line comments
+ { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
+ { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
+ { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions
+ { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
+ { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
+ ];
+
+ this.langLabel = "SQL";
+ };
+
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
+ Brush.aliases = ['sql'];
+
+ SyntaxHighlighter.brushes.Sql = Brush;
+
+ // CommonJS
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
+})();
+
+
+
+;(function()
+{
+ // CommonJS
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
+
+ function Brush()
+ {
+ this.langLabel = "Plain text";
+ };
+
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
+ Brush.aliases = ['text', 'plain'];
+
+ SyntaxHighlighter.brushes.Plain = Brush;
+
+ // CommonJS
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
+})();
+
+;(function()
+{
+ // CommonJS
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
+
+ function Brush()
+ {
+ var keywords = 'abstract as async await base-datalet bool break byte case catch char checked class const ' +
+ 'continue decimal default delegate do double else enum event explicit volatile ' +
+ 'extern false finally fixed float for foreach get goto if implicit in int ' +
+ 'interface internal is lock long namespace new null object operator out ' +
+ 'override params private protected public readonly ref return sbyte sealed set ' +
+ 'short sizeof stackalloc static string struct switch this throw true try ' +
+ 'typeof uint ulong unchecked unsafe ushort using virtual void while var ' +
+ 'from group by into select let where orderby join on equals ascending descending';
+
+ function fixComments(match, regexInfo)
+ {
+ var css = (match[0].indexOf("///") == 0)
+ ? 'color1'
+ : 'comments'
+ ;
+
+ return [new SyntaxHighlighter.Match(match[0], match.index, css)];
+ }
+
+ this.regexList = [
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
+ { regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
+ { regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
+ { regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
+ { regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
+ ];
+
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
+ this.langLabel = "C#";
+ };
+
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
+ Brush.aliases = ['c#', 'cs', 'c-sharp', 'csharp'];
+
+ SyntaxHighlighter.brushes.CSharp = Brush;
+
+ // CommonJS
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
+})();
+
+
+SyntaxHighlighter.all();
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/custom_vars.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/custom_vars.html
new file mode 100644
index 0000000..5de0c3d
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/custom_vars.html
@@ -0,0 +1,301 @@
+
+
+
+
+
+
+
+ DataTables example - Custom HTTP variables
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Custom HTTP variables
+
+
+ It can often be useful to send extra information to the server when utilising DataTables' server-side processing option. This is done by using the ajaxDT
option's data
+ parameter which can be used in one of two different ways:
+
+
+ object
- An object data to send to the server. This is useful for adding static data to the request.
+ function
- A function which will manipulate the data object to send to the server, adding values as required. Using the data
+ parameter as a function allows the additional data to evaluated and added to the request at the time the request is made.
+
+
+ The example below shows server-side processing being used with an extra parameter being sent to the server by using the ajax.data
option as a
+ function.
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "processing": true,
+ "serverSide": true,
+ "ajax": {
+ "url": "scripts/server_processing.php",
+ "data": function ( d ) {
+ d.myKey = "myValue";
+ // d.custom = $('#myInput').val();
+ // etc
+ }
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/defer_loading.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/defer_loading.html
new file mode 100644
index 0000000..7599a0c
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/defer_loading.html
@@ -0,0 +1,370 @@
+
+
+
+
+
+
+
+
+ DataTables example - Deferred loading of data
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Deferred loading of data
+
+
+ When using DataTables with server-side processing, the default behaviour is to have DataTables automatically make an Ajax call and load the data, removing
+ anything which might have already been in the table. However, this behaviour might not always be desirable when the first page of the table has already been
+ preloaded in the HTML (which you might do to ensure accessibility or for performance reasons).
+
+ This automatic Ajax call to get the first page of data can be overridden by using the deferLoadingDT
initialisation property. It serves two purposes, firstly to indicate that
+ deferred loading is required, but also to tell DataTables how many records there are in the full table, in this case 57 (this allows the information element and
+ pagination to be displayed correctly).
+
+ In the example below, the HTML page already has the first 10 rows of data available it in, so we use deferLoadingDT
to tell
+ DataTables that this data is available and that it should wait for under interaction (ordering, paging etc) before making an Ajax call.
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+ Airi
+ Satou
+ Accountant
+ Tokyo
+ 28th Nov 08
+ $162,700
+
+
+ Angelica
+ Ramos
+ Chief Executive Officer (CEO)
+ London
+ 9th Oct 09
+ $1,200,000
+
+
+ Ashton
+ Cox
+ Junior Technical Author
+ San Francisco
+ 12th Jan 09
+ $86,000
+
+
+ Bradley
+ Greer
+ Software Engineer
+ London
+ 13th Oct 12
+ $132,000
+
+
+ Brenden
+ Wagner
+ Software Engineer
+ San Francisco
+ 7th Jun 11
+ $206,850
+
+
+ Brielle
+ Williamson
+ Integration Specialist
+ New York
+ 2nd Dec 12
+ $372,000
+
+
+ Bruno
+ Nash
+ Software Engineer
+ London
+ 3rd May 11
+ $163,500
+
+
+ Caesar
+ Vance
+ Pre-Sales Support
+ New York
+ 12th Dec 11
+ $106,450
+
+
+ Cara
+ Stevens
+ Sales Assistant
+ New York
+ 6th Dec 11
+ $145,600
+
+
+ Cedric
+ Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 29th Mar 12
+ $433,060
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "processing": true,
+ "serverSide": true,
+ "ajax": "scripts/server_processing.php",
+ "deferLoading": 57
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/ids.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/ids.html
new file mode 100644
index 0000000..1f5da96
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/ids.html
@@ -0,0 +1,305 @@
+
+
+
+
+
+
+
+
+ DataTables example - Automatic addition of row ID attributes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Automatic addition of row ID attributes
+
+
+ Often when using server-side processing you will find that it can be useful to have a specific ID on each row (the primary key value from the database for
+ example). By assigning the ID you want to apply to each row using the property DT_RowId
of the data source object for each row, DataTables will
+ automatically add it for you.
+
+ In addition to DT_RowId
there are two other properties which perform similar actions: DT_RowClass
and DT_RowData
:
+
+
+ - {string}
DT_RowId
- Add an ID to the TR element
+ - {string}
DT_RowClass
- Add a class name to the TR element
+ - {object}
DT_RowData
- Add HTML5 data- attributes to the TR element. This is an object of key / value pairs which are
+ assigned as data attributes to the TR element.
+
+
+ This example below shows DT_RowId
being used to add information to the table. In addition objects are used as the data source for the rows.
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "processing": true,
+ "serverSide": true,
+ "ajax": "scripts/ids-objects.php",
+ "columns": [
+ { "data": "first_name" },
+ { "data": "last_name" },
+ { "data": "position" },
+ { "data": "office" },
+ { "data": "start_date" },
+ { "data": "salary" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/index.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/index.html
new file mode 100644
index 0000000..f7e73b1
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/index.html
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables examples - Server-side processing
+
+
+
+
+
+ DataTables example Server-side processing
+
+
+ There are many ways to get your data into DataTables, and if you are working with seriously large databases, you might want to consider using the server-side
+ options that DataTables provides. With server-side processing enabled, all paging, searching, ordering etc actions that DataTables performs are handed off to a
+ server where an SQL engine (or similar) can perform these actions on the large data set (after all, that's what the database engine is designed for!). As such,
+ each draw of the table will result in a new Ajax request being made to get the required data.
+
+ Server-side processing is enabled by setting the serverSideDT
option to true
and providing an Ajax data source through the ajaxDT
option.
+
+ The examples in this section shows server-side processing in use and how it can be customised to suit your needs.
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/jsonp.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/jsonp.html
new file mode 100644
index 0000000..69c0e55
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/jsonp.html
@@ -0,0 +1,294 @@
+
+
+
+
+
+
+
+
+ DataTables example - JSONP data source for remote domains
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example JSONP data source for remote domains
+
+
+ JSONP is one of several methods to allow the use of JSON data from any server
+ (browsers have XSS protection rules which will block standard Ajax requests to remote source for security reasons). Using JSONP allows DataTables to load
+ server-side sourced data from any domain and is quite simply done with the dataType
option of the ajaxDT
initialisation option.
+
+ When given as an object, the ajaxDT
option maps directly onto the jQuery ajax
+ options (i.e. any option that can be used in jQuery's Ajax function can also be used in DataTable's ajaxDT
option).
+
+ The example below shows ajaxDT
being used with the dataType
option set to retrieve JSONP data for server-side
+ processing in DataTables.
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "processing": true,
+ "serverSide": true,
+ "ajax": {
+ "url": "scripts/jsonp.php",
+ "dataType": "jsonp"
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/object_data.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/object_data.html
new file mode 100644
index 0000000..cd92ecf
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/object_data.html
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
+
+ DataTables example - Object data source
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Object data source
+
+
+ The default data format that DataTables expects for server-side processing is a 2D array of data (rows by columns). However, this is often not flexible enough
+ for either the server-side environment, or you might want to convey more information in the data source than is necessary to show in the table (row IDs from the
+ database for example). For these situations DataTables supports the reading of data for objects as well as arrays.
+
+ In this example the server responds with an array of objects, where DataTables will look up and use each property that is specified by the columns.dataDT
property
+ given for each column.
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "processing": true,
+ "serverSide": true,
+ "ajax": "scripts/objects.php",
+ "columns": [
+ { "data": "first_name" },
+ { "data": "last_name" },
+ { "data": "position" },
+ { "data": "office" },
+ { "data": "start_date" },
+ { "data": "salary" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/pipeline.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/pipeline.html
new file mode 100644
index 0000000..419ccf6
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/pipeline.html
@@ -0,0 +1,530 @@
+
+
+
+
+
+
+
+
+ DataTables example - Pipelining data to reduce Ajax calls for paging
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Pipelining data to reduce Ajax calls for paging
+
+
+ Sever-side processing can be quite hard on your server, since it makes an Ajax call to the server for every draw request that is made. On sites with a large
+ number of page views, you could potentially end up DDoSing your own server with your own applications!
+
+ This example shows one technique to reduce the number of Ajax calls that are made to the server by caching more data than is needed for each draw. This is done
+ by intercepting the Ajax call and routing it through a data cache control; using the data from the cache if available, and making the Ajax request if not. This
+ intercept of the Ajax request is performed by giving the ajaxDT
option as a function. This function then performs the logic of deciding if another Ajax call is
+ needed, or if data from the cache can be used.
+
+ Keep in mind that this caching is for paging only; the pipeline must be cleared for other interactions such as ordering and searching since the full data set,
+ when using server-side processing, is only available at the server.
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
//
+// Pipelining function for DataTables. To be used to the `ajax` option of DataTables
+//
+$.fn.dataTable.pipeline = function ( opts ) {
+ // Configuration options
+ var conf = $.extend( {
+ pages: 5, // number of pages to cache
+ url: '', // script url
+ data: null, // function or object with parameters to send to the server
+ // matching how `ajax.data` works in DataTables
+ method: 'GET' // Ajax HTTP method
+ }, opts );
+
+ // Private variables for storing the cache
+ var cacheLower = -1;
+ var cacheUpper = null;
+ var cacheLastRequest = null;
+ var cacheLastJson = null;
+
+ return function ( request, drawCallback, settings ) {
+ var ajax = false;
+ var requestStart = request.start;
+ var drawStart = request.start;
+ var requestLength = request.length;
+ var requestEnd = requestStart + requestLength;
+
+ if ( settings.clearCache ) {
+ // API requested that the cache be cleared
+ ajax = true;
+ settings.clearCache = false;
+ }
+ else if ( cacheLower < 0 || requestStart < cacheLower || requestEnd > cacheUpper ) {
+ // outside cached data - need to make a request
+ ajax = true;
+ }
+ else if ( JSON.stringify( request.order ) !== JSON.stringify( cacheLastRequest.order ) ||
+ JSON.stringify( request.columns ) !== JSON.stringify( cacheLastRequest.columns ) ||
+ JSON.stringify( request.search ) !== JSON.stringify( cacheLastRequest.search )
+ ) {
+ // properties changed (ordering, columns, searching)
+ ajax = true;
+ }
+
+ // Store the request for checking next time around
+ cacheLastRequest = $.extend( true, {}, request );
+
+ if ( ajax ) {
+ // Need data from the server
+ if ( requestStart < cacheLower ) {
+ requestStart = requestStart - (requestLength*(conf.pages-1));
+
+ if ( requestStart < 0 ) {
+ requestStart = 0;
+ }
+ }
+
+ cacheLower = requestStart;
+ cacheUpper = requestStart + (requestLength * conf.pages);
+
+ request.start = requestStart;
+ request.length = requestLength*conf.pages;
+
+ // Provide the same `data` options as DataTables.
+ if ( $.isFunction ( conf.data ) ) {
+ // As a function it is executed with the data object as an arg
+ // for manipulation. If an object is returned, it is used as the
+ // data object to submit
+ var d = conf.data( request );
+ if ( d ) {
+ $.extend( request, d );
+ }
+ }
+ else if ( $.isPlainObject( conf.data ) ) {
+ // As an object, the data given extends the default
+ $.extend( request, conf.data );
+ }
+
+ settings.jqXHR = $.ajax( {
+ "type": conf.method,
+ "url": conf.url,
+ "data": request,
+ "dataType": "json",
+ "cache": false,
+ "success": function ( json ) {
+ cacheLastJson = $.extend(true, {}, json);
+
+ if ( cacheLower != drawStart ) {
+ json.data.splice( 0, drawStart-cacheLower );
+ }
+ json.data.splice( requestLength, json.data.length );
+
+ drawCallback( json );
+ }
+ } );
+ }
+ else {
+ json = $.extend( true, {}, cacheLastJson );
+ json.draw = request.draw; // Update the echo for each response
+ json.data.splice( 0, requestStart-cacheLower );
+ json.data.splice( requestLength, json.data.length );
+
+ drawCallback(json);
+ }
+ }
+};
+
+// Register an API method that will empty the pipelined data, forcing an Ajax
+// fetch on the next draw (i.e. `table.clearPipeline().draw()`)
+$.fn.dataTable.Api.register( 'clearPipeline()', function () {
+ return this.iterator( 'table', function ( settings ) {
+ settings.clearCache = true;
+ } );
+} );
+
+
+//
+// DataTables initialisation
+//
+$(document).ready(function() {
+ $('#example').dataTable( {
+ "processing": true,
+ "serverSide": true,
+ "ajax": $.fn.dataTable.pipeline( {
+ url: 'scripts/server_processing.php',
+ pages: 5 // number of pages to cache
+ } )
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/post.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/post.html
new file mode 100644
index 0000000..4590b2b
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/post.html
@@ -0,0 +1,310 @@
+
+
+
+
+
+
+
+
+ DataTables example - POST data
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example POST data
+
+
+ By default, the Ajax request that DataTables makes to obtain server-side processing data is an HTTP GET request. However, there are times when you might wish to
+ use POST. This is very easily done by using the type
option of the ajaxDT
initialisation option.
+
+ When given as an object, the ajaxDT
option maps directly onto the jQuery ajax
+ options (i.e. any option that can be used in jQuery's Ajax function can also be used in DataTable's ajaxDT
option).
+
+ The example below shows ajaxDT
being used with the type
option set to POST
to make a POST request.
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "processing": true,
+ "serverSide": true,
+ "ajax": {
+ "url": "scripts/post.php",
+ "type": "POST"
+ },
+ "columns": [
+ { "data": "first_name" },
+ { "data": "last_name" },
+ { "data": "position" },
+ { "data": "office" },
+ { "data": "start_date" },
+ { "data": "salary" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/row_details.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/row_details.html
new file mode 100644
index 0000000..c72244b
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/row_details.html
@@ -0,0 +1,410 @@
+
+
+
+
+
+
+
+
+ DataTables example - Row details
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Row details
+
+
+ This example shows the use of DataTables' ability to show and hide child rows which are attached to a parent row in the host table. This is often used to show
+ additional information about a row, particularly when you wish to convey more information about a row than there is space for in the host table.
+
+ The example below shows server-side processing being used with the first column having an event listener attached to it which will toggle the child row's
+ display. This is set up using columns.dataDT
and columns.defaultContentDT
, in combination with CSS to show an empty cell with a background
+ image which can be clicked upon.
+
+ The event handler makes use of the row().childDT
methods to firstly check if a row is already displayed, and if so hide it, if not show it. The
+ content of the child row is, in this example, defined by the format()
function, but you would replace that with whatever you wanted to show the
+ content required, possibly including, for example, an Ajax call to the server to obtain the extra information to show. Note that the format details function has
+ access to the full data source object for the row, including information that is not actually shown in the table (the salary parameter for example).
+
+ Furthermore, this example shows a small difference from the client-side row details example in that to have rows
+ automatically reopen when the table is redrawn, we need to track a unique identifier for each row - in this case the row id
. This is required because
+ in server-side processing mode rows are automatically destroyed and recreated on each draw.
+
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
function format ( d ) {
+ return 'Full name: '+d.first_name+' '+d.last_name+'<br>'+
+ 'Salary: '+d.salary+'<br>'+
+ 'The child row can contain any data you wish, including links, images, inner tables etc.';
+}
+
+$(document).ready(function() {
+ var dt = $('#example').DataTable( {
+ "processing": true,
+ "serverSide": true,
+ "ajax": "scripts/ids-objects.php",
+ "columns": [
+ {
+ "class": "details-control",
+ "orderable": false,
+ "data": null,
+ "defaultContent": ""
+ },
+ { "data": "first_name" },
+ { "data": "last_name" },
+ { "data": "position" },
+ { "data": "office" }
+ ],
+ "order": [[1, 'asc']]
+ } );
+
+ // Array to track the ids of the details displayed rows
+ var detailRows = [];
+
+ $('#example tbody').on( 'click', 'tr td:first-child', function () {
+ var tr = $(this).closest('tr');
+ var row = dt.row( tr );
+ var idx = $.inArray( tr.attr('id'), detailRows );
+
+ if ( row.child.isShown() ) {
+ tr.removeClass( 'details' );
+ row.child.hide();
+
+ // Remove from the 'open' array
+ detailRows.splice( idx, 1 );
+ }
+ else {
+ tr.addClass( 'details' );
+ row.child( format( row.data() ) ).show();
+
+ // Add to the 'open' array
+ if ( idx === -1 ) {
+ detailRows.push( tr.attr('id') );
+ }
+ }
+ } );
+
+ // On each draw, loop over the `detailRows` array and show any child rows
+ dt.on( 'draw', function () {
+ $.each( detailRows, function ( i, id ) {
+ $('#'+id+' td:first-child').trigger( 'click' );
+ } );
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
td.details-control {
+ background: url('../resources/details_open.png') no-repeat center center;
+ cursor: pointer;
+}
+tr.details td.details-control {
+ background: url('../resources/details_close.png') no-repeat center center;
+}
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/ids-arrays.php b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/ids-arrays.php
new file mode 100644
index 0000000..29439e1
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/ids-arrays.php
@@ -0,0 +1,81 @@
+ 'id',
+ 'dt' => 'DT_RowId',
+ 'formatter' => function( $d, $row ) {
+ // Technically a DOM id cannot start with an integer, so we prefix
+ // a string. This can also be useful if you have multiple tables
+ // to ensure that the id is unique with a different prefix
+ return 'row_'.$d;
+ }
+ ),
+ array( 'db' => 'first_name', 'dt' => 0 ),
+ array( 'db' => 'last_name', 'dt' => 1 ),
+ array( 'db' => 'position', 'dt' => 2 ),
+ array( 'db' => 'office', 'dt' => 3 ),
+ array(
+ 'db' => 'start_date',
+ 'dt' => 4,
+ 'formatter' => function( $d, $row ) {
+ return date( 'jS M y', strtotime($d));
+ }
+ ),
+ array(
+ 'db' => 'salary',
+ 'dt' => 5,
+ 'formatter' => function( $d, $row ) {
+ return '$'.number_format($d);
+ }
+ )
+);
+
+// SQL server connection information
+$sql_details = array(
+ 'user' => '',
+ 'pass' => '',
+ 'db' => '',
+ 'host' => ''
+);
+
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * If you just want to use the basic configuration for DataTables with PHP
+ * server-side, there is no need to edit below this line.
+ */
+
+require( 'ssp.class.php' );
+
+echo json_encode(
+ SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
+);
+
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/ids-objects.php b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/ids-objects.php
new file mode 100644
index 0000000..920c19e
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/ids-objects.php
@@ -0,0 +1,80 @@
+ 'id',
+ 'dt' => 'DT_RowId',
+ 'formatter' => function( $d, $row ) {
+ // Technically a DOM id cannot start with an integer, so we prefix
+ // a string. This can also be useful if you have multiple tables
+ // to ensure that the id is unique with a different prefix
+ return 'row_'.$d;
+ }
+ ),
+ array( 'db' => 'first_name', 'dt' => 'first_name' ),
+ array( 'db' => 'last_name', 'dt' => 'last_name' ),
+ array( 'db' => 'position', 'dt' => 'position' ),
+ array( 'db' => 'office', 'dt' => 'office' ),
+ array(
+ 'db' => 'start_date',
+ 'dt' => 'start_date',
+ 'formatter' => function( $d, $row ) {
+ return date( 'jS M y', strtotime($d));
+ }
+ ),
+ array(
+ 'db' => 'salary',
+ 'dt' => 'salary',
+ 'formatter' => function( $d, $row ) {
+ return '$'.number_format($d);
+ }
+ )
+);
+
+$sql_details = array(
+ 'user' => '',
+ 'pass' => '',
+ 'db' => '',
+ 'host' => ''
+);
+
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * If you just want to use the basic configuration for DataTables with PHP
+ * server-side, there is no need to edit below this line.
+ */
+
+require( 'ssp.class.php' );
+
+echo json_encode(
+ SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
+);
+
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/jsonp.php b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/jsonp.php
new file mode 100644
index 0000000..f0d16b8
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/jsonp.php
@@ -0,0 +1,69 @@
+ 'first_name', 'dt' => 0 ),
+ array( 'db' => 'last_name', 'dt' => 1 ),
+ array( 'db' => 'position', 'dt' => 2 ),
+ array( 'db' => 'office', 'dt' => 3 ),
+ array(
+ 'db' => 'start_date',
+ 'dt' => 4,
+ 'formatter' => function( $d, $row ) {
+ return date( 'jS M y', strtotime($d));
+ }
+ ),
+ array(
+ 'db' => 'salary',
+ 'dt' => 5,
+ 'formatter' => function( $d, $row ) {
+ return '$'.number_format($d);
+ }
+ )
+);
+
+$sql_details = array(
+ 'user' => '',
+ 'pass' => '',
+ 'db' => '',
+ 'host' => ''
+);
+
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * If you just want to use the basic configuration for DataTables with PHP
+ * server-side, there is no need to edit below this line.
+ */
+require( 'ssp.class.php' );
+
+echo $_GET['callback'].'('.json_encode(
+ SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
+).');';
+
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/mysql.sql b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/mysql.sql
new file mode 100644
index 0000000..3e57288
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/mysql.sql
@@ -0,0 +1,80 @@
+--
+-- DataTables Ajax and server-side processing database (MySQL)
+--
+
+DROP TABLE IF EXISTS `datatables_demo`;
+
+CREATE TABLE `datatables_demo` (
+ `id` int(10) NOT NULL auto_increment,
+ `first_name` varchar(250) NOT NULL default '',
+ `last_name` varchar(250) NOT NULL default '',
+ `position` varchar(250) NOT NULL default '',
+ `email` varchar(250) NOT NULL default '',
+ `office` varchar(250) NOT NULL default '',
+ `start_date` timestamp DEFAULT CURRENT_TIMESTAMP,
+ `age` int(8),
+ `salary` int(8),
+ `extn` varchar(8) NOT NULL default '',
+ PRIMARY KEY (`id`)
+);
+
+INSERT INTO `datatables_demo`
+ ( id, first_name, last_name, age, position, salary, start_date, extn, email, office )
+ VALUES
+ ( 1, 'Tiger', 'Nixon', 61, 'System Architect', 320800, '2011/04/25', 5421, 't.nixon@datatables.net', 'Edinburgh' ),
+ ( 2, 'Garrett', 'Winters', 63, 'Accountant', 170750, '2011/07/25', 8422, 'g.winters@datatables.net', 'Tokyo' ),
+ ( 3, 'Ashton', 'Cox', 66, 'Junior Technical Author', 86000, '2009/01/12', 1562, 'a.cox@datatables.net', 'San Francisco' ),
+ ( 4, 'Cedric', 'Kelly', 22, 'Senior Javascript Developer', 433060, '2012/03/29', 6224, 'c.kelly@datatables.net', 'Edinburgh' ),
+ ( 5, 'Airi', 'Satou', 33, 'Accountant', 162700, '2008/11/28', 5407, 'a.satou@datatables.net', 'Tokyo' ),
+ ( 6, 'Brielle', 'Williamson', 61, 'Integration Specialist', 372000, '2012/12/02', 4804, 'b.williamson@datatables.net', 'New York' ),
+ ( 7, 'Herrod', 'Chandler', 59, 'Sales Assistant', 137500, '2012/08/06', 9608, 'h.chandler@datatables.net', 'San Francisco' ),
+ ( 8, 'Rhona', 'Davidson', 55, 'Integration Specialist', 327900, '2010/10/14', 6200, 'r.davidson@datatables.net', 'Tokyo' ),
+ ( 9, 'Colleen', 'Hurst', 39, 'Javascript Developer', 205500, '2009/09/15', 2360, 'c.hurst@datatables.net', 'San Francisco' ),
+ ( 10, 'Sonya', 'Frost', 23, 'Software Engineer', 103600, '2008/12/13', 1667, 's.frost@datatables.net', 'Edinburgh' ),
+ ( 11, 'Jena', 'Gaines', 30, 'Office Manager', 90560, '2008/12/19', 3814, 'j.gaines@datatables.net', 'London' ),
+ ( 12, 'Quinn', 'Flynn', 22, 'Support Lead', 342000, '2013/03/03', 9497, 'q.flynn@datatables.net', 'Edinburgh' ),
+ ( 13, 'Charde', 'Marshall', 36, 'Regional Director', 470600, '2008/10/16', 6741, 'c.marshall@datatables.net', 'San Francisco' ),
+ ( 14, 'Haley', 'Kennedy', 43, 'Senior Marketing Designer', 313500, '2012/12/18', 3597, 'h.kennedy@datatables.net', 'London' ),
+ ( 15, 'Tatyana', 'Fitzpatrick', 19, 'Regional Director', 385750, '2010/03/17', 1965, 't.fitzpatrick@datatables.net', 'London' ),
+ ( 16, 'Michael', 'Silva', 66, 'Marketing Designer', 198500, '2012/11/27', 1581, 'm.silva@datatables.net', 'London' ),
+ ( 17, 'Paul', 'Byrd', 64, 'Chief Financial Officer (CFO)', 725000, '2010/06/09', 3059, 'p.byrd@datatables.net', 'New York' ),
+ ( 18, 'Gloria', 'Little', 59, 'Systems Administrator', 237500, '2009/04/10', 1721, 'g.little@datatables.net', 'New York' ),
+ ( 19, 'Bradley', 'Greer', 41, 'Software Engineer', 132000, '2012/10/13', 2558, 'b.greer@datatables.net', 'London' ),
+ ( 20, 'Dai', 'Rios', 35, 'Personnel Lead', 217500, '2012/09/26', 2290, 'd.rios@datatables.net', 'Edinburgh' ),
+ ( 21, 'Jenette', 'Caldwell', 30, 'Development Lead', 345000, '2011/09/03', 1937, 'j.caldwell@datatables.net', 'New York' ),
+ ( 22, 'Yuri', 'Berry', 40, 'Chief Marketing Officer (CMO)', 675000, '2009/06/25', 6154, 'y.berry@datatables.net', 'New York' ),
+ ( 23, 'Caesar', 'Vance', 21, 'Pre-Sales Support', 106450, '2011/12/12', 8330, 'c.vance@datatables.net', 'New York' ),
+ ( 24, 'Doris', 'Wilder', 23, 'Sales Assistant', 85600, '2010/09/20', 3023, 'd.wilder@datatables.net', 'Sidney' ),
+ ( 25, 'Angelica', 'Ramos', 47, 'Chief Executive Officer (CEO)', 1200000, '2009/10/09', 5797, 'a.ramos@datatables.net', 'London' ),
+ ( 26, 'Gavin', 'Joyce', 42, 'Developer', 92575, '2010/12/22', 8822, 'g.joyce@datatables.net', 'Edinburgh' ),
+ ( 27, 'Jennifer', 'Chang', 28, 'Regional Director', 357650, '2010/11/14', 9239, 'j.chang@datatables.net', 'Singapore' ),
+ ( 28, 'Brenden', 'Wagner', 28, 'Software Engineer', 206850, '2011/06/07', 1314, 'b.wagner@datatables.net', 'San Francisco' ),
+ ( 29, 'Fiona', 'Green', 48, 'Chief Operating Officer (COO)', 850000, '2010/03/11', 2947, 'f.green@datatables.net', 'San Francisco' ),
+ ( 30, 'Shou', 'Itou', 20, 'Regional Marketing', 163000, '2011/08/14', 8899, 's.itou@datatables.net', 'Tokyo' ),
+ ( 31, 'Michelle', 'House', 37, 'Integration Specialist', 95400, '2011/06/02', 2769, 'm.house@datatables.net', 'Sidney' ),
+ ( 32, 'Suki', 'Burks', 53, 'Developer', 114500, '2009/10/22', 6832, 's.burks@datatables.net', 'London' ),
+ ( 33, 'Prescott', 'Bartlett', 27, 'Technical Author', 145000, '2011/05/07', 3606, 'p.bartlett@datatables.net', 'London' ),
+ ( 34, 'Gavin', 'Cortez', 22, 'Team Leader', 235500, '2008/10/26', 2860, 'g.cortez@datatables.net', 'San Francisco' ),
+ ( 35, 'Martena', 'Mccray', 46, 'Post-Sales support', 324050, '2011/03/09', 8240, 'm.mccray@datatables.net', 'Edinburgh' ),
+ ( 36, 'Unity', 'Butler', 47, 'Marketing Designer', 85675, '2009/12/09', 5384, 'u.butler@datatables.net', 'San Francisco' ),
+ ( 37, 'Howard', 'Hatfield', 51, 'Office Manager', 164500, '2008/12/16', 7031, 'h.hatfield@datatables.net', 'San Francisco' ),
+ ( 38, 'Hope', 'Fuentes', 41, 'Secretary', 109850, '2010/02/12', 6318, 'h.fuentes@datatables.net', 'San Francisco' ),
+ ( 39, 'Vivian', 'Harrell', 62, 'Financial Controller', 452500, '2009/02/14', 9422, 'v.harrell@datatables.net', 'San Francisco' ),
+ ( 40, 'Timothy', 'Mooney', 37, 'Office Manager', 136200, '2008/12/11', 7580, 't.mooney@datatables.net', 'London' ),
+ ( 41, 'Jackson', 'Bradshaw', 65, 'Director', 645750, '2008/09/26', 1042, 'j.bradshaw@datatables.net', 'New York' ),
+ ( 42, 'Olivia', 'Liang', 64, 'Support Engineer', 234500, '2011/02/03', 2120, 'o.liang@datatables.net', 'Singapore' ),
+ ( 43, 'Bruno', 'Nash', 38, 'Software Engineer', 163500, '2011/05/03', 6222, 'b.nash@datatables.net', 'London' ),
+ ( 44, 'Sakura', 'Yamamoto', 37, 'Support Engineer', 139575, '2009/08/19', 9383, 's.yamamoto@datatables.net', 'Tokyo' ),
+ ( 45, 'Thor', 'Walton', 61, 'Developer', 98540, '2013/08/11', 8327, 't.walton@datatables.net', 'New York' ),
+ ( 46, 'Finn', 'Camacho', 47, 'Support Engineer', 87500, '2009/07/07', 2927, 'f.camacho@datatables.net', 'San Francisco' ),
+ ( 47, 'Serge', 'Baldwin', 64, 'Data Coordinator', 138575, '2012/04/09', 8352, 's.baldwin@datatables.net', 'Singapore' ),
+ ( 48, 'Zenaida', 'Frank', 63, 'Software Engineer', 125250, '2010/01/04', 7439, 'z.frank@datatables.net', 'New York' ),
+ ( 49, 'Zorita', 'Serrano', 56, 'Software Engineer', 115000, '2012/06/01', 4389, 'z.serrano@datatables.net', 'San Francisco' ),
+ ( 50, 'Jennifer', 'Acosta', 43, 'Junior Javascript Developer', 75650, '2013/02/01', 3431, 'j.acosta@datatables.net', 'Edinburgh' ),
+ ( 51, 'Cara', 'Stevens', 46, 'Sales Assistant', 145600, '2011/12/06', 3990, 'c.stevens@datatables.net', 'New York' ),
+ ( 52, 'Hermione', 'Butler', 47, 'Regional Director', 356250, '2011/03/21', 1016, 'h.butler@datatables.net', 'London' ),
+ ( 53, 'Lael', 'Greer', 21, 'Systems Administrator', 103500, '2009/02/27', 6733, 'l.greer@datatables.net', 'London' ),
+ ( 54, 'Jonas', 'Alexander', 30, 'Developer', 86500, '2010/07/14', 8196, 'j.alexander@datatables.net', 'San Francisco' ),
+ ( 55, 'Shad', 'Decker', 51, 'Regional Director', 183000, '2008/11/13', 6373, 's.decker@datatables.net', 'Edinburgh' ),
+ ( 56, 'Michael', 'Bruce', 29, 'Javascript Developer', 183000, '2011/06/27', 5384, 'm.bruce@datatables.net', 'Singapore' ),
+ ( 57, 'Donna', 'Snider', 27, 'Customer Support', 112000, '2011/01/25', 4226, 'd.snider@datatables.net', 'New York' );
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/objects.php b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/objects.php
new file mode 100644
index 0000000..958befc
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/objects.php
@@ -0,0 +1,57 @@
+ 'first_name', 'dt' => 'first_name' ),
+ array( 'db' => 'last_name', 'dt' => 'last_name' ),
+ array( 'db' => 'position', 'dt' => 'position' ),
+ array( 'db' => 'office', 'dt' => 'office' ),
+ array(
+ 'db' => 'start_date',
+ 'dt' => 'start_date',
+ 'formatter' => function( $d, $row ) {
+ return date( 'jS M y', strtotime($d));
+ }
+ ),
+ array(
+ 'db' => 'salary',
+ 'dt' => 'salary',
+ 'formatter' => function( $d, $row ) {
+ return '$'.number_format($d);
+ }
+ )
+);
+
+// SQL server connection information
+$sql_details = array(
+ 'user' => '',
+ 'pass' => '',
+ 'db' => '',
+ 'host' => ''
+);
+
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * If you just want to use the basic configuration for DataTables with PHP
+ * server-side, there is no need to edit below this line.
+ */
+
+require( 'ssp.class.php' );
+
+echo json_encode(
+ SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
+);
+
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/post.php b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/post.php
new file mode 100644
index 0000000..c9e0bcc
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/post.php
@@ -0,0 +1,71 @@
+ 'first_name', 'dt' => 'first_name' ),
+ array( 'db' => 'last_name', 'dt' => 'last_name' ),
+ array( 'db' => 'position', 'dt' => 'position' ),
+ array( 'db' => 'office', 'dt' => 'office' ),
+ array(
+ 'db' => 'start_date',
+ 'dt' => 'start_date',
+ 'formatter' => function( $d, $row ) {
+ return date( 'jS M y', strtotime($d));
+ }
+ ),
+ array(
+ 'db' => 'salary',
+ 'dt' => 'salary',
+ 'formatter' => function( $d, $row ) {
+ return '$'.number_format($d);
+ }
+ )
+);
+
+// SQL server connection information
+$sql_details = array(
+ 'user' => '',
+ 'pass' => '',
+ 'db' => '',
+ 'host' => ''
+);
+
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * If you just want to use the basic configuration for DataTables with PHP
+ * server-side, there is no need to edit below this line.
+ */
+
+require( 'ssp.class.php' );
+
+echo json_encode(
+ SSP::simple( $_POST, $sql_details, $table, $primaryKey, $columns )
+);
+
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/postgres.sql b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/postgres.sql
new file mode 100644
index 0000000..45803fd
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/postgres.sql
@@ -0,0 +1,81 @@
+--
+-- DataTables Ajax and server-side processing database (Postgres)
+--
+DROP TABLE IF EXISTS datatables_demo;
+
+CREATE TABLE datatables_demo (
+ id serial,
+ first_name text NOT NULL default '',
+ last_name text NOT NULL default '',
+ position text NOT NULL default '',
+ email text NOT NULL default '',
+ office text NOT NULL default '',
+ start_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
+ age integer,
+ salary integer,
+ extn text NOT NULL default '',
+ PRIMARY KEY (id)
+);
+
+INSERT INTO datatables_demo
+ ( id, first_name, last_name, age, position, salary, start_date, extn, email, office )
+ VALUES
+ ( 1, 'Tiger', 'Nixon', 61, 'System Architect', 320800, '2011/04/25', 5421, 't.nixon@datatables.net', 'Edinburgh' ),
+ ( 2, 'Garrett', 'Winters', 63, 'Accountant', 170750, '2011/07/25', 8422, 'g.winters@datatables.net', 'Tokyo' ),
+ ( 3, 'Ashton', 'Cox', 66, 'Junior Technical Author', 86000, '2009/01/12', 1562, 'a.cox@datatables.net', 'San Francisco' ),
+ ( 4, 'Cedric', 'Kelly', 22, 'Senior Javascript Developer', 433060, '2012/03/29', 6224, 'c.kelly@datatables.net', 'Edinburgh' ),
+ ( 5, 'Airi', 'Satou', 33, 'Accountant', 162700, '2008/11/28', 5407, 'a.satou@datatables.net', 'Tokyo' ),
+ ( 6, 'Brielle', 'Williamson', 61, 'Integration Specialist', 372000, '2012/12/02', 4804, 'b.williamson@datatables.net', 'New York' ),
+ ( 7, 'Herrod', 'Chandler', 59, 'Sales Assistant', 137500, '2012/08/06', 9608, 'h.chandler@datatables.net', 'San Francisco' ),
+ ( 8, 'Rhona', 'Davidson', 55, 'Integration Specialist', 327900, '2010/10/14', 6200, 'r.davidson@datatables.net', 'Tokyo' ),
+ ( 9, 'Colleen', 'Hurst', 39, 'Javascript Developer', 205500, '2009/09/15', 2360, 'c.hurst@datatables.net', 'San Francisco' ),
+ ( 10, 'Sonya', 'Frost', 23, 'Software Engineer', 103600, '2008/12/13', 1667, 's.frost@datatables.net', 'Edinburgh' ),
+ ( 11, 'Jena', 'Gaines', 30, 'Office Manager', 90560, '2008/12/19', 3814, 'j.gaines@datatables.net', 'London' ),
+ ( 12, 'Quinn', 'Flynn', 22, 'Support Lead', 342000, '2013/03/03', 9497, 'q.flynn@datatables.net', 'Edinburgh' ),
+ ( 13, 'Charde', 'Marshall', 36, 'Regional Director', 470600, '2008/10/16', 6741, 'c.marshall@datatables.net', 'San Francisco' ),
+ ( 14, 'Haley', 'Kennedy', 43, 'Senior Marketing Designer', 313500, '2012/12/18', 3597, 'h.kennedy@datatables.net', 'London' ),
+ ( 15, 'Tatyana', 'Fitzpatrick', 19, 'Regional Director', 385750, '2010/03/17', 1965, 't.fitzpatrick@datatables.net', 'London' ),
+ ( 16, 'Michael', 'Silva', 66, 'Marketing Designer', 198500, '2012/11/27', 1581, 'm.silva@datatables.net', 'London' ),
+ ( 17, 'Paul', 'Byrd', 64, 'Chief Financial Officer (CFO)', 725000, '2010/06/09', 3059, 'p.byrd@datatables.net', 'New York' ),
+ ( 18, 'Gloria', 'Little', 59, 'Systems Administrator', 237500, '2009/04/10', 1721, 'g.little@datatables.net', 'New York' ),
+ ( 19, 'Bradley', 'Greer', 41, 'Software Engineer', 132000, '2012/10/13', 2558, 'b.greer@datatables.net', 'London' ),
+ ( 20, 'Dai', 'Rios', 35, 'Personnel Lead', 217500, '2012/09/26', 2290, 'd.rios@datatables.net', 'Edinburgh' ),
+ ( 21, 'Jenette', 'Caldwell', 30, 'Development Lead', 345000, '2011/09/03', 1937, 'j.caldwell@datatables.net', 'New York' ),
+ ( 22, 'Yuri', 'Berry', 40, 'Chief Marketing Officer (CMO)', 675000, '2009/06/25', 6154, 'y.berry@datatables.net', 'New York' ),
+ ( 23, 'Caesar', 'Vance', 21, 'Pre-Sales Support', 106450, '2011/12/12', 8330, 'c.vance@datatables.net', 'New York' ),
+ ( 24, 'Doris', 'Wilder', 23, 'Sales Assistant', 85600, '2010/09/20', 3023, 'd.wilder@datatables.net', 'Sidney' ),
+ ( 25, 'Angelica', 'Ramos', 47, 'Chief Executive Officer (CEO)', 1200000, '2009/10/09', 5797, 'a.ramos@datatables.net', 'London' ),
+ ( 26, 'Gavin', 'Joyce', 42, 'Developer', 92575, '2010/12/22', 8822, 'g.joyce@datatables.net', 'Edinburgh' ),
+ ( 27, 'Jennifer', 'Chang', 28, 'Regional Director', 357650, '2010/11/14', 9239, 'j.chang@datatables.net', 'Singapore' ),
+ ( 28, 'Brenden', 'Wagner', 28, 'Software Engineer', 206850, '2011/06/07', 1314, 'b.wagner@datatables.net', 'San Francisco' ),
+ ( 29, 'Fiona', 'Green', 48, 'Chief Operating Officer (COO)', 850000, '2010/03/11', 2947, 'f.green@datatables.net', 'San Francisco' ),
+ ( 30, 'Shou', 'Itou', 20, 'Regional Marketing', 163000, '2011/08/14', 8899, 's.itou@datatables.net', 'Tokyo' ),
+ ( 31, 'Michelle', 'House', 37, 'Integration Specialist', 95400, '2011/06/02', 2769, 'm.house@datatables.net', 'Sidney' ),
+ ( 32, 'Suki', 'Burks', 53, 'Developer', 114500, '2009/10/22', 6832, 's.burks@datatables.net', 'London' ),
+ ( 33, 'Prescott', 'Bartlett', 27, 'Technical Author', 145000, '2011/05/07', 3606, 'p.bartlett@datatables.net', 'London' ),
+ ( 34, 'Gavin', 'Cortez', 22, 'Team Leader', 235500, '2008/10/26', 2860, 'g.cortez@datatables.net', 'San Francisco' ),
+ ( 35, 'Martena', 'Mccray', 46, 'Post-Sales support', 324050, '2011/03/09', 8240, 'm.mccray@datatables.net', 'Edinburgh' ),
+ ( 36, 'Unity', 'Butler', 47, 'Marketing Designer', 85675, '2009/12/09', 5384, 'u.butler@datatables.net', 'San Francisco' ),
+ ( 37, 'Howard', 'Hatfield', 51, 'Office Manager', 164500, '2008/12/16', 7031, 'h.hatfield@datatables.net', 'San Francisco' ),
+ ( 38, 'Hope', 'Fuentes', 41, 'Secretary', 109850, '2010/02/12', 6318, 'h.fuentes@datatables.net', 'San Francisco' ),
+ ( 39, 'Vivian', 'Harrell', 62, 'Financial Controller', 452500, '2009/02/14', 9422, 'v.harrell@datatables.net', 'San Francisco' ),
+ ( 40, 'Timothy', 'Mooney', 37, 'Office Manager', 136200, '2008/12/11', 7580, 't.mooney@datatables.net', 'London' ),
+ ( 41, 'Jackson', 'Bradshaw', 65, 'Director', 645750, '2008/09/26', 1042, 'j.bradshaw@datatables.net', 'New York' ),
+ ( 42, 'Olivia', 'Liang', 64, 'Support Engineer', 234500, '2011/02/03', 2120, 'o.liang@datatables.net', 'Singapore' ),
+ ( 43, 'Bruno', 'Nash', 38, 'Software Engineer', 163500, '2011/05/03', 6222, 'b.nash@datatables.net', 'London' ),
+ ( 44, 'Sakura', 'Yamamoto', 37, 'Support Engineer', 139575, '2009/08/19', 9383, 's.yamamoto@datatables.net', 'Tokyo' ),
+ ( 45, 'Thor', 'Walton', 61, 'Developer', 98540, '2013/08/11', 8327, 't.walton@datatables.net', 'New York' ),
+ ( 46, 'Finn', 'Camacho', 47, 'Support Engineer', 87500, '2009/07/07', 2927, 'f.camacho@datatables.net', 'San Francisco' ),
+ ( 47, 'Serge', 'Baldwin', 64, 'Data Coordinator', 138575, '2012/04/09', 8352, 's.baldwin@datatables.net', 'Singapore' ),
+ ( 48, 'Zenaida', 'Frank', 63, 'Software Engineer', 125250, '2010/01/04', 7439, 'z.frank@datatables.net', 'New York' ),
+ ( 49, 'Zorita', 'Serrano', 56, 'Software Engineer', 115000, '2012/06/01', 4389, 'z.serrano@datatables.net', 'San Francisco' ),
+ ( 50, 'Jennifer', 'Acosta', 43, 'Junior Javascript Developer', 75650, '2013/02/01', 3431, 'j.acosta@datatables.net', 'Edinburgh' ),
+ ( 51, 'Cara', 'Stevens', 46, 'Sales Assistant', 145600, '2011/12/06', 3990, 'c.stevens@datatables.net', 'New York' ),
+ ( 52, 'Hermione', 'Butler', 47, 'Regional Director', 356250, '2011/03/21', 1016, 'h.butler@datatables.net', 'London' ),
+ ( 53, 'Lael', 'Greer', 21, 'Systems Administrator', 103500, '2009/02/27', 6733, 'l.greer@datatables.net', 'London' ),
+ ( 54, 'Jonas', 'Alexander', 30, 'Developer', 86500, '2010/07/14', 8196, 'j.alexander@datatables.net', 'San Francisco' ),
+ ( 55, 'Shad', 'Decker', 51, 'Regional Director', 183000, '2008/11/13', 6373, 's.decker@datatables.net', 'Edinburgh' ),
+ ( 56, 'Michael', 'Bruce', 29, 'Javascript Developer', 183000, '2011/06/27', 5384, 'm.bruce@datatables.net', 'Singapore' ),
+ ( 57, 'Donna', 'Snider', 27, 'Customer Support', 112000, '2011/01/25', 4226, 'd.snider@datatables.net', 'New York' );
+
+ALTER SEQUENCE datatables_demo_id_seq RESTART WITH 58;
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/server_processing.php b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/server_processing.php
new file mode 100644
index 0000000..afbfc0a
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/server_processing.php
@@ -0,0 +1,72 @@
+ 'first_name', 'dt' => 0 ),
+ array( 'db' => 'last_name', 'dt' => 1 ),
+ array( 'db' => 'position', 'dt' => 2 ),
+ array( 'db' => 'office', 'dt' => 3 ),
+ array(
+ 'db' => 'start_date',
+ 'dt' => 4,
+ 'formatter' => function( $d, $row ) {
+ return date( 'jS M y', strtotime($d));
+ }
+ ),
+ array(
+ 'db' => 'salary',
+ 'dt' => 5,
+ 'formatter' => function( $d, $row ) {
+ return '$'.number_format($d);
+ }
+ )
+);
+
+// SQL server connection information
+$sql_details = array(
+ 'user' => '',
+ 'pass' => '',
+ 'db' => '',
+ 'host' => ''
+);
+
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * If you just want to use the basic configuration for DataTables with PHP
+ * server-side, there is no need to edit below this line.
+ */
+
+require( 'ssp.class.php' );
+
+echo json_encode(
+ SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
+);
+
+
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/sqlite.sql b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/sqlite.sql
new file mode 100644
index 0000000..6cecf13
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/sqlite.sql
@@ -0,0 +1,78 @@
+--
+-- DataTables Ajax and server-side processing database (SQLite)
+--
+DROP TABLE IF EXISTS datatables_demo;
+
+CREATE TABLE datatables_demo (
+ id integer primary key,
+ first_name text NOT NULL default '',
+ last_name text NOT NULL default '',
+ position text NOT NULL default '',
+ email text NOT NULL default '',
+ office text NOT NULL default '',
+ start_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
+ age integer,
+ salary integer,
+ extn text NOT NULL default ''
+);
+
+INSERT INTO datatables_demo
+ ( id, first_name, last_name, age, position, salary, start_date, extn, email, office )
+ VALUES
+ ( 1, 'Tiger', 'Nixon', 61, 'System Architect', 320800, '2011/04/25', 5421, 't.nixon@datatables.net', 'Edinburgh' ),
+ ( 2, 'Garrett', 'Winters', 63, 'Accountant', 170750, '2011/07/25', 8422, 'g.winters@datatables.net', 'Tokyo' ),
+ ( 3, 'Ashton', 'Cox', 66, 'Junior Technical Author', 86000, '2009/01/12', 1562, 'a.cox@datatables.net', 'San Francisco' ),
+ ( 4, 'Cedric', 'Kelly', 22, 'Senior Javascript Developer', 433060, '2012/03/29', 6224, 'c.kelly@datatables.net', 'Edinburgh' ),
+ ( 5, 'Airi', 'Satou', 33, 'Accountant', 162700, '2008/11/28', 5407, 'a.satou@datatables.net', 'Tokyo' ),
+ ( 6, 'Brielle', 'Williamson', 61, 'Integration Specialist', 372000, '2012/12/02', 4804, 'b.williamson@datatables.net', 'New York' ),
+ ( 7, 'Herrod', 'Chandler', 59, 'Sales Assistant', 137500, '2012/08/06', 9608, 'h.chandler@datatables.net', 'San Francisco' ),
+ ( 8, 'Rhona', 'Davidson', 55, 'Integration Specialist', 327900, '2010/10/14', 6200, 'r.davidson@datatables.net', 'Tokyo' ),
+ ( 9, 'Colleen', 'Hurst', 39, 'Javascript Developer', 205500, '2009/09/15', 2360, 'c.hurst@datatables.net', 'San Francisco' ),
+ ( 10, 'Sonya', 'Frost', 23, 'Software Engineer', 103600, '2008/12/13', 1667, 's.frost@datatables.net', 'Edinburgh' ),
+ ( 11, 'Jena', 'Gaines', 30, 'Office Manager', 90560, '2008/12/19', 3814, 'j.gaines@datatables.net', 'London' ),
+ ( 12, 'Quinn', 'Flynn', 22, 'Support Lead', 342000, '2013/03/03', 9497, 'q.flynn@datatables.net', 'Edinburgh' ),
+ ( 13, 'Charde', 'Marshall', 36, 'Regional Director', 470600, '2008/10/16', 6741, 'c.marshall@datatables.net', 'San Francisco' ),
+ ( 14, 'Haley', 'Kennedy', 43, 'Senior Marketing Designer', 313500, '2012/12/18', 3597, 'h.kennedy@datatables.net', 'London' ),
+ ( 15, 'Tatyana', 'Fitzpatrick', 19, 'Regional Director', 385750, '2010/03/17', 1965, 't.fitzpatrick@datatables.net', 'London' ),
+ ( 16, 'Michael', 'Silva', 66, 'Marketing Designer', 198500, '2012/11/27', 1581, 'm.silva@datatables.net', 'London' ),
+ ( 17, 'Paul', 'Byrd', 64, 'Chief Financial Officer (CFO)', 725000, '2010/06/09', 3059, 'p.byrd@datatables.net', 'New York' ),
+ ( 18, 'Gloria', 'Little', 59, 'Systems Administrator', 237500, '2009/04/10', 1721, 'g.little@datatables.net', 'New York' ),
+ ( 19, 'Bradley', 'Greer', 41, 'Software Engineer', 132000, '2012/10/13', 2558, 'b.greer@datatables.net', 'London' ),
+ ( 20, 'Dai', 'Rios', 35, 'Personnel Lead', 217500, '2012/09/26', 2290, 'd.rios@datatables.net', 'Edinburgh' ),
+ ( 21, 'Jenette', 'Caldwell', 30, 'Development Lead', 345000, '2011/09/03', 1937, 'j.caldwell@datatables.net', 'New York' ),
+ ( 22, 'Yuri', 'Berry', 40, 'Chief Marketing Officer (CMO)', 675000, '2009/06/25', 6154, 'y.berry@datatables.net', 'New York' ),
+ ( 23, 'Caesar', 'Vance', 21, 'Pre-Sales Support', 106450, '2011/12/12', 8330, 'c.vance@datatables.net', 'New York' ),
+ ( 24, 'Doris', 'Wilder', 23, 'Sales Assistant', 85600, '2010/09/20', 3023, 'd.wilder@datatables.net', 'Sidney' ),
+ ( 25, 'Angelica', 'Ramos', 47, 'Chief Executive Officer (CEO)', 1200000, '2009/10/09', 5797, 'a.ramos@datatables.net', 'London' ),
+ ( 26, 'Gavin', 'Joyce', 42, 'Developer', 92575, '2010/12/22', 8822, 'g.joyce@datatables.net', 'Edinburgh' ),
+ ( 27, 'Jennifer', 'Chang', 28, 'Regional Director', 357650, '2010/11/14', 9239, 'j.chang@datatables.net', 'Singapore' ),
+ ( 28, 'Brenden', 'Wagner', 28, 'Software Engineer', 206850, '2011/06/07', 1314, 'b.wagner@datatables.net', 'San Francisco' ),
+ ( 29, 'Fiona', 'Green', 48, 'Chief Operating Officer (COO)', 850000, '2010/03/11', 2947, 'f.green@datatables.net', 'San Francisco' ),
+ ( 30, 'Shou', 'Itou', 20, 'Regional Marketing', 163000, '2011/08/14', 8899, 's.itou@datatables.net', 'Tokyo' ),
+ ( 31, 'Michelle', 'House', 37, 'Integration Specialist', 95400, '2011/06/02', 2769, 'm.house@datatables.net', 'Sidney' ),
+ ( 32, 'Suki', 'Burks', 53, 'Developer', 114500, '2009/10/22', 6832, 's.burks@datatables.net', 'London' ),
+ ( 33, 'Prescott', 'Bartlett', 27, 'Technical Author', 145000, '2011/05/07', 3606, 'p.bartlett@datatables.net', 'London' ),
+ ( 34, 'Gavin', 'Cortez', 22, 'Team Leader', 235500, '2008/10/26', 2860, 'g.cortez@datatables.net', 'San Francisco' ),
+ ( 35, 'Martena', 'Mccray', 46, 'Post-Sales support', 324050, '2011/03/09', 8240, 'm.mccray@datatables.net', 'Edinburgh' ),
+ ( 36, 'Unity', 'Butler', 47, 'Marketing Designer', 85675, '2009/12/09', 5384, 'u.butler@datatables.net', 'San Francisco' ),
+ ( 37, 'Howard', 'Hatfield', 51, 'Office Manager', 164500, '2008/12/16', 7031, 'h.hatfield@datatables.net', 'San Francisco' ),
+ ( 38, 'Hope', 'Fuentes', 41, 'Secretary', 109850, '2010/02/12', 6318, 'h.fuentes@datatables.net', 'San Francisco' ),
+ ( 39, 'Vivian', 'Harrell', 62, 'Financial Controller', 452500, '2009/02/14', 9422, 'v.harrell@datatables.net', 'San Francisco' ),
+ ( 40, 'Timothy', 'Mooney', 37, 'Office Manager', 136200, '2008/12/11', 7580, 't.mooney@datatables.net', 'London' ),
+ ( 41, 'Jackson', 'Bradshaw', 65, 'Director', 645750, '2008/09/26', 1042, 'j.bradshaw@datatables.net', 'New York' ),
+ ( 42, 'Olivia', 'Liang', 64, 'Support Engineer', 234500, '2011/02/03', 2120, 'o.liang@datatables.net', 'Singapore' ),
+ ( 43, 'Bruno', 'Nash', 38, 'Software Engineer', 163500, '2011/05/03', 6222, 'b.nash@datatables.net', 'London' ),
+ ( 44, 'Sakura', 'Yamamoto', 37, 'Support Engineer', 139575, '2009/08/19', 9383, 's.yamamoto@datatables.net', 'Tokyo' ),
+ ( 45, 'Thor', 'Walton', 61, 'Developer', 98540, '2013/08/11', 8327, 't.walton@datatables.net', 'New York' ),
+ ( 46, 'Finn', 'Camacho', 47, 'Support Engineer', 87500, '2009/07/07', 2927, 'f.camacho@datatables.net', 'San Francisco' ),
+ ( 47, 'Serge', 'Baldwin', 64, 'Data Coordinator', 138575, '2012/04/09', 8352, 's.baldwin@datatables.net', 'Singapore' ),
+ ( 48, 'Zenaida', 'Frank', 63, 'Software Engineer', 125250, '2010/01/04', 7439, 'z.frank@datatables.net', 'New York' ),
+ ( 49, 'Zorita', 'Serrano', 56, 'Software Engineer', 115000, '2012/06/01', 4389, 'z.serrano@datatables.net', 'San Francisco' ),
+ ( 50, 'Jennifer', 'Acosta', 43, 'Junior Javascript Developer', 75650, '2013/02/01', 3431, 'j.acosta@datatables.net', 'Edinburgh' ),
+ ( 51, 'Cara', 'Stevens', 46, 'Sales Assistant', 145600, '2011/12/06', 3990, 'c.stevens@datatables.net', 'New York' ),
+ ( 52, 'Hermione', 'Butler', 47, 'Regional Director', 356250, '2011/03/21', 1016, 'h.butler@datatables.net', 'London' ),
+ ( 53, 'Lael', 'Greer', 21, 'Systems Administrator', 103500, '2009/02/27', 6733, 'l.greer@datatables.net', 'London' ),
+ ( 54, 'Jonas', 'Alexander', 30, 'Developer', 86500, '2010/07/14', 8196, 'j.alexander@datatables.net', 'San Francisco' ),
+ ( 55, 'Shad', 'Decker', 51, 'Regional Director', 183000, '2008/11/13', 6373, 's.decker@datatables.net', 'Edinburgh' ),
+ ( 56, 'Michael', 'Bruce', 29, 'Javascript Developer', 183000, '2011/06/27', 5384, 'm.bruce@datatables.net', 'Singapore' ),
+ ( 57, 'Donna', 'Snider', 27, 'Customer Support', 112000, '2011/01/25', 4226, 'd.snider@datatables.net', 'New York' );
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/sqlserver.sql b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/sqlserver.sql
new file mode 100644
index 0000000..7eb84a2
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/sqlserver.sql
@@ -0,0 +1,84 @@
+--
+-- DataTables Ajax and server-side processing database (SQL Server)
+--
+IF OBJECT_ID('dbo.datatables_demo', 'U') IS NOT NULL
+ DROP TABLE dbo.datatables_demo;
+
+CREATE TABLE datatables_demo (
+ id int NOT NULL identity,
+ first_name varchar(250) NOT NULL default '',
+ last_name varchar(250) NOT NULL default '',
+ position varchar(250) NOT NULL default '',
+ email varchar(250) NOT NULL default '',
+ office varchar(250) NOT NULL default '',
+ start_date datetime DEFAULT GETDATE(),
+ age int,
+ salary int,
+ extn varchar(8) NOT NULL default '',
+ PRIMARY KEY (id)
+);
+
+SET IDENTITY_INSERT datatables_demo ON;
+
+INSERT INTO datatables_demo
+ ( id, first_name, last_name, age, position, salary, start_date, extn, email, office )
+ VALUES
+ ( 1, 'Tiger', 'Nixon', 61, 'System Architect', 320800, '2011/04/25', 5421, 't.nixon@datatables.net', 'Edinburgh' ),
+ ( 2, 'Garrett', 'Winters', 63, 'Accountant', 170750, '2011/07/25', 8422, 'g.winters@datatables.net', 'Tokyo' ),
+ ( 3, 'Ashton', 'Cox', 66, 'Junior Technical Author', 86000, '2009/01/12', 1562, 'a.cox@datatables.net', 'San Francisco' ),
+ ( 4, 'Cedric', 'Kelly', 22, 'Senior Javascript Developer', 433060, '2012/03/29', 6224, 'c.kelly@datatables.net', 'Edinburgh' ),
+ ( 5, 'Airi', 'Satou', 33, 'Accountant', 162700, '2008/11/28', 5407, 'a.satou@datatables.net', 'Tokyo' ),
+ ( 6, 'Brielle', 'Williamson', 61, 'Integration Specialist', 372000, '2012/12/02', 4804, 'b.williamson@datatables.net', 'New York' ),
+ ( 7, 'Herrod', 'Chandler', 59, 'Sales Assistant', 137500, '2012/08/06', 9608, 'h.chandler@datatables.net', 'San Francisco' ),
+ ( 8, 'Rhona', 'Davidson', 55, 'Integration Specialist', 327900, '2010/10/14', 6200, 'r.davidson@datatables.net', 'Tokyo' ),
+ ( 9, 'Colleen', 'Hurst', 39, 'Javascript Developer', 205500, '2009/09/15', 2360, 'c.hurst@datatables.net', 'San Francisco' ),
+ ( 10, 'Sonya', 'Frost', 23, 'Software Engineer', 103600, '2008/12/13', 1667, 's.frost@datatables.net', 'Edinburgh' ),
+ ( 11, 'Jena', 'Gaines', 30, 'Office Manager', 90560, '2008/12/19', 3814, 'j.gaines@datatables.net', 'London' ),
+ ( 12, 'Quinn', 'Flynn', 22, 'Support Lead', 342000, '2013/03/03', 9497, 'q.flynn@datatables.net', 'Edinburgh' ),
+ ( 13, 'Charde', 'Marshall', 36, 'Regional Director', 470600, '2008/10/16', 6741, 'c.marshall@datatables.net', 'San Francisco' ),
+ ( 14, 'Haley', 'Kennedy', 43, 'Senior Marketing Designer', 313500, '2012/12/18', 3597, 'h.kennedy@datatables.net', 'London' ),
+ ( 15, 'Tatyana', 'Fitzpatrick', 19, 'Regional Director', 385750, '2010/03/17', 1965, 't.fitzpatrick@datatables.net', 'London' ),
+ ( 16, 'Michael', 'Silva', 66, 'Marketing Designer', 198500, '2012/11/27', 1581, 'm.silva@datatables.net', 'London' ),
+ ( 17, 'Paul', 'Byrd', 64, 'Chief Financial Officer (CFO)', 725000, '2010/06/09', 3059, 'p.byrd@datatables.net', 'New York' ),
+ ( 18, 'Gloria', 'Little', 59, 'Systems Administrator', 237500, '2009/04/10', 1721, 'g.little@datatables.net', 'New York' ),
+ ( 19, 'Bradley', 'Greer', 41, 'Software Engineer', 132000, '2012/10/13', 2558, 'b.greer@datatables.net', 'London' ),
+ ( 20, 'Dai', 'Rios', 35, 'Personnel Lead', 217500, '2012/09/26', 2290, 'd.rios@datatables.net', 'Edinburgh' ),
+ ( 21, 'Jenette', 'Caldwell', 30, 'Development Lead', 345000, '2011/09/03', 1937, 'j.caldwell@datatables.net', 'New York' ),
+ ( 22, 'Yuri', 'Berry', 40, 'Chief Marketing Officer (CMO)', 675000, '2009/06/25', 6154, 'y.berry@datatables.net', 'New York' ),
+ ( 23, 'Caesar', 'Vance', 21, 'Pre-Sales Support', 106450, '2011/12/12', 8330, 'c.vance@datatables.net', 'New York' ),
+ ( 24, 'Doris', 'Wilder', 23, 'Sales Assistant', 85600, '2010/09/20', 3023, 'd.wilder@datatables.net', 'Sidney' ),
+ ( 25, 'Angelica', 'Ramos', 47, 'Chief Executive Officer (CEO)', 1200000, '2009/10/09', 5797, 'a.ramos@datatables.net', 'London' ),
+ ( 26, 'Gavin', 'Joyce', 42, 'Developer', 92575, '2010/12/22', 8822, 'g.joyce@datatables.net', 'Edinburgh' ),
+ ( 27, 'Jennifer', 'Chang', 28, 'Regional Director', 357650, '2010/11/14', 9239, 'j.chang@datatables.net', 'Singapore' ),
+ ( 28, 'Brenden', 'Wagner', 28, 'Software Engineer', 206850, '2011/06/07', 1314, 'b.wagner@datatables.net', 'San Francisco' ),
+ ( 29, 'Fiona', 'Green', 48, 'Chief Operating Officer (COO)', 850000, '2010/03/11', 2947, 'f.green@datatables.net', 'San Francisco' ),
+ ( 30, 'Shou', 'Itou', 20, 'Regional Marketing', 163000, '2011/08/14', 8899, 's.itou@datatables.net', 'Tokyo' ),
+ ( 31, 'Michelle', 'House', 37, 'Integration Specialist', 95400, '2011/06/02', 2769, 'm.house@datatables.net', 'Sidney' ),
+ ( 32, 'Suki', 'Burks', 53, 'Developer', 114500, '2009/10/22', 6832, 's.burks@datatables.net', 'London' ),
+ ( 33, 'Prescott', 'Bartlett', 27, 'Technical Author', 145000, '2011/05/07', 3606, 'p.bartlett@datatables.net', 'London' ),
+ ( 34, 'Gavin', 'Cortez', 22, 'Team Leader', 235500, '2008/10/26', 2860, 'g.cortez@datatables.net', 'San Francisco' ),
+ ( 35, 'Martena', 'Mccray', 46, 'Post-Sales support', 324050, '2011/03/09', 8240, 'm.mccray@datatables.net', 'Edinburgh' ),
+ ( 36, 'Unity', 'Butler', 47, 'Marketing Designer', 85675, '2009/12/09', 5384, 'u.butler@datatables.net', 'San Francisco' ),
+ ( 37, 'Howard', 'Hatfield', 51, 'Office Manager', 164500, '2008/12/16', 7031, 'h.hatfield@datatables.net', 'San Francisco' ),
+ ( 38, 'Hope', 'Fuentes', 41, 'Secretary', 109850, '2010/02/12', 6318, 'h.fuentes@datatables.net', 'San Francisco' ),
+ ( 39, 'Vivian', 'Harrell', 62, 'Financial Controller', 452500, '2009/02/14', 9422, 'v.harrell@datatables.net', 'San Francisco' ),
+ ( 40, 'Timothy', 'Mooney', 37, 'Office Manager', 136200, '2008/12/11', 7580, 't.mooney@datatables.net', 'London' ),
+ ( 41, 'Jackson', 'Bradshaw', 65, 'Director', 645750, '2008/09/26', 1042, 'j.bradshaw@datatables.net', 'New York' ),
+ ( 42, 'Olivia', 'Liang', 64, 'Support Engineer', 234500, '2011/02/03', 2120, 'o.liang@datatables.net', 'Singapore' ),
+ ( 43, 'Bruno', 'Nash', 38, 'Software Engineer', 163500, '2011/05/03', 6222, 'b.nash@datatables.net', 'London' ),
+ ( 44, 'Sakura', 'Yamamoto', 37, 'Support Engineer', 139575, '2009/08/19', 9383, 's.yamamoto@datatables.net', 'Tokyo' ),
+ ( 45, 'Thor', 'Walton', 61, 'Developer', 98540, '2013/08/11', 8327, 't.walton@datatables.net', 'New York' ),
+ ( 46, 'Finn', 'Camacho', 47, 'Support Engineer', 87500, '2009/07/07', 2927, 'f.camacho@datatables.net', 'San Francisco' ),
+ ( 47, 'Serge', 'Baldwin', 64, 'Data Coordinator', 138575, '2012/04/09', 8352, 's.baldwin@datatables.net', 'Singapore' ),
+ ( 48, 'Zenaida', 'Frank', 63, 'Software Engineer', 125250, '2010/01/04', 7439, 'z.frank@datatables.net', 'New York' ),
+ ( 49, 'Zorita', 'Serrano', 56, 'Software Engineer', 115000, '2012/06/01', 4389, 'z.serrano@datatables.net', 'San Francisco' ),
+ ( 50, 'Jennifer', 'Acosta', 43, 'Junior Javascript Developer', 75650, '2013/02/01', 3431, 'j.acosta@datatables.net', 'Edinburgh' ),
+ ( 51, 'Cara', 'Stevens', 46, 'Sales Assistant', 145600, '2011/12/06', 3990, 'c.stevens@datatables.net', 'New York' ),
+ ( 52, 'Hermione', 'Butler', 47, 'Regional Director', 356250, '2011/03/21', 1016, 'h.butler@datatables.net', 'London' ),
+ ( 53, 'Lael', 'Greer', 21, 'Systems Administrator', 103500, '2009/02/27', 6733, 'l.greer@datatables.net', 'London' ),
+ ( 54, 'Jonas', 'Alexander', 30, 'Developer', 86500, '2010/07/14', 8196, 'j.alexander@datatables.net', 'San Francisco' ),
+ ( 55, 'Shad', 'Decker', 51, 'Regional Director', 183000, '2008/11/13', 6373, 's.decker@datatables.net', 'Edinburgh' ),
+ ( 56, 'Michael', 'Bruce', 29, 'Javascript Developer', 183000, '2011/06/27', 5384, 'm.bruce@datatables.net', 'Singapore' ),
+ ( 57, 'Donna', 'Snider', 27, 'Customer Support', 112000, '2011/01/25', 4226, 'd.snider@datatables.net', 'New York' );
+
+SET IDENTITY_INSERT datatables_demo OFF;
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/ssp.class.php b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/ssp.class.php
new file mode 100644
index 0000000..708319e
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/scripts/ssp.class.php
@@ -0,0 +1,520 @@
+ intval( $request['draw'] ),
+ "recordsTotal" => intval( $recordsTotal ),
+ "recordsFiltered" => intval( $recordsFiltered ),
+ "data" => self::data_output( $columns, $data )
+ );
+ }
+
+
+ /**
+ * The difference between this method and the `simple` one, is that you can
+ * apply additional `where` conditions to the SQL queries. These can be in
+ * one of two forms:
+ *
+ * * 'Result condition' - This is applied to the result set, but not the
+ * overall paging information query - i.e. it will not effect the number
+ * of records that a user sees they can have access to. This should be
+ * used when you want apply a filtering condition that the user has sent.
+ * * 'All condition' - This is applied to all queries that are made and
+ * reduces the number of records that the user can access. This should be
+ * used in conditions where you don't want the user to ever have access to
+ * particular records (for example, restricting by a login id).
+ *
+ * @param array $request Data sent to server by DataTables
+ * @param array|PDO $conn PDO connection resource or connection parameters array
+ * @param string $table SQL table to query
+ * @param string $primaryKey Primary key of the table
+ * @param array $columns Column information array
+ * @param string $whereResult WHERE condition to apply to the result set
+ * @param string $whereAll WHERE condition to apply to all queries
+ * @return array Server-side processing response array
+ */
+ static function complex ( $request, $conn, $table, $primaryKey, $columns, $whereResult=null, $whereAll=null )
+ {
+ $bindings = array();
+ $db = self::db( $conn );
+ $localWhereResult = array();
+ $localWhereAll = array();
+ $whereAllSql = '';
+
+ // Build the SQL query string from the request
+ $limit = self::limit( $request, $columns );
+ $order = self::order( $request, $columns );
+ $where = self::filter( $request, $columns, $bindings );
+
+ $whereResult = self::_flatten( $whereResult );
+ $whereAll = self::_flatten( $whereAll );
+
+ if ( $whereResult ) {
+ $where = $where ?
+ $where .' AND '.$whereResult :
+ 'WHERE '.$whereResult;
+ }
+
+ if ( $whereAll ) {
+ $where = $where ?
+ $where .' AND '.$whereAll :
+ 'WHERE '.$whereAll;
+
+ $whereAllSql = 'WHERE '.$whereAll;
+ }
+
+ // Main query to actually get the data
+ $data = self::sql_exec( $db, $bindings,
+ "SELECT SQL_CALC_FOUND_ROWS `".implode("`, `", self::pluck($columns, 'db'))."`
+ FROM `$table`
+ $where
+ $order
+ $limit"
+ );
+
+ // Data set length after filtering
+ $resFilterLength = self::sql_exec( $db,
+ "SELECT FOUND_ROWS()"
+ );
+ $recordsFiltered = $resFilterLength[0][0];
+
+ // Total data set length
+ $resTotalLength = self::sql_exec( $db, $bindings,
+ "SELECT COUNT(`{$primaryKey}`)
+ FROM `$table` ".
+ $whereAllSql
+ );
+ $recordsTotal = $resTotalLength[0][0];
+
+ /*
+ * Output
+ */
+ return array(
+ "draw" => intval( $request['draw'] ),
+ "recordsTotal" => intval( $recordsTotal ),
+ "recordsFiltered" => intval( $recordsFiltered ),
+ "data" => self::data_output( $columns, $data )
+ );
+ }
+
+
+ /**
+ * Connect to the database
+ *
+ * @param array $sql_details SQL server connection details array, with the
+ * properties:
+ * * host - host name
+ * * db - database name
+ * * user - user name
+ * * pass - user password
+ * @return resource Database connection handle
+ */
+ static function sql_connect ( $sql_details )
+ {
+ try {
+ $db = @new PDO(
+ "mysql:host={$sql_details['host']};dbname={$sql_details['db']}",
+ $sql_details['user'],
+ $sql_details['pass'],
+ array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION )
+ );
+ }
+ catch (PDOException $e) {
+ self::fatal(
+ "An error occurred while connecting to the database. ".
+ "The error reported by the server was: ".$e->getMessage()
+ );
+ }
+
+ return $db;
+ }
+
+
+ /**
+ * Execute an SQL query on the database
+ *
+ * @param resource $db Database handler
+ * @param array $bindings Array of PDO binding values from bind() to be
+ * used for safely escaping strings. Note that this can be given as the
+ * SQL query string if no bindings are required.
+ * @param string $sql SQL query to execute.
+ * @return array Result from the query (all rows)
+ */
+ static function sql_exec ( $db, $bindings, $sql=null )
+ {
+ // Argument shifting
+ if ( $sql === null ) {
+ $sql = $bindings;
+ }
+
+ $stmt = $db->prepare( $sql );
+ //echo $sql;
+
+ // Bind parameters
+ if ( is_array( $bindings ) ) {
+ for ( $i=0, $ien=count($bindings) ; $i<$ien ; $i++ ) {
+ $binding = $bindings[$i];
+ $stmt->bindValue( $binding['key'], $binding['val'], $binding['type'] );
+ }
+ }
+
+ // Execute
+ try {
+ $stmt->execute();
+ }
+ catch (PDOException $e) {
+ self::fatal( "An SQL error occurred: ".$e->getMessage() );
+ }
+
+ // Return all
+ return $stmt->fetchAll();
+ }
+
+
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Internal methods
+ */
+
+ /**
+ * Throw a fatal error.
+ *
+ * This writes out an error message in a JSON string which DataTables will
+ * see and show to the user in the browser.
+ *
+ * @param string $msg Message to send to the client
+ */
+ static function fatal ( $msg )
+ {
+ echo json_encode( array(
+ "error" => $msg
+ ) );
+
+ exit(0);
+ }
+
+ /**
+ * Create a PDO binding key which can be used for escaping variables safely
+ * when executing a query with sql_exec()
+ *
+ * @param array &$a Array of bindings
+ * @param * $val Value to bind
+ * @param int $type PDO field type
+ * @return string Bound key to be used in the SQL where this parameter
+ * would be used.
+ */
+ static function bind ( &$a, $val, $type )
+ {
+ $key = ':binding_'.count( $a );
+
+ $a[] = array(
+ 'key' => $key,
+ 'val' => $val,
+ 'type' => $type
+ );
+
+ return $key;
+ }
+
+
+ /**
+ * Pull a particular property from each assoc. array in a numeric array,
+ * returning and array of the property values from each item.
+ *
+ * @param array $a Array to get data from
+ * @param string $prop Property to read
+ * @return array Array of property values
+ */
+ static function pluck ( $a, $prop )
+ {
+ $out = array();
+
+ for ( $i=0, $len=count($a) ; $i<$len ; $i++ ) {
+ $out[] = $a[$i][$prop];
+ }
+
+ return $out;
+ }
+
+
+ /**
+ * Return a string from an array or a string
+ *
+ * @param array|string $a Array to join
+ * @param string $join Glue for the concatenation
+ * @return string Joined string
+ */
+ static function _flatten ( $a, $join = ' AND ' )
+ {
+ if ( ! $a ) {
+ return '';
+ }
+ else if ( $a && is_array($a) ) {
+ return implode( $join, $a );
+ }
+ return $a;
+ }
+}
+
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/select_rows.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/select_rows.html
new file mode 100644
index 0000000..c2f481e
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/select_rows.html
@@ -0,0 +1,323 @@
+
+
+
+
+
+
+
+
+ DataTables example - Row selection
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Row selection
+
+
+ When you want to have user selectable rows in DataTables, it is relatively trivial when using DOM based data - but when using server-side processing, DataTables
+ doesn't retain DOM row elements over pages / filtering etc. As such, you will need to keep a track of which rows a user as selected and mark them as selected on
+ each draw.
+
+ This is shown in this demo, which uses a unique ID assigned to the TR element (this is done automatically through the use of the DT_RowId
special
+ property returned as part of the object given by the server for each row) to track which rows are selected and reselect them is appropriate on a draw.
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var selected = [];
+
+ $("#example").dataTable({
+ "processing": true,
+ "serverSide": true,
+ "ajax": "scripts/ids-arrays.php",
+ "rowCallback": function( row, data ) {
+ if ( $.inArray(data.DT_RowId, selected) !== -1 ) {
+ $(row).addClass('selected');
+ }
+ }
+ });
+
+ $('#example tbody').on('click', 'tr', function () {
+ var id = this.id;
+ var index = $.inArray(id, selected);
+
+ if ( index === -1 ) {
+ selected.push( id );
+ } else {
+ selected.splice( index, 1 );
+ }
+
+ $(this).toggleClass('selected');
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/simple.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/simple.html
new file mode 100644
index 0000000..3cd40ba
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/server_side/simple.html
@@ -0,0 +1,285 @@
+
+
+
+
+
+
+
+
+ DataTables example - Server-side processing
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Server-side processing
+
+
+ There are many ways to get your data into DataTables, and if you are working with seriously large databases, you might want to consider using the server-side
+ options that DataTables provides. With server-side processing enabled, all paging, searching, ordering etc actions that DataTables performs are handed off to a
+ server where an SQL engine (or similar) can perform these actions on the large data set (after all, that's what the database engine is designed for!). As such,
+ each draw of the table will result in a new Ajax request being made to get the required data.
+
+ Server-side processing is enabled by setting the serverSideDT
option to true
and providing an Ajax data source through the ajaxDT
option.
+
+ This example shows a very simple table, matching the other client-side processing examples, but in this instance using server-side processing.
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Start date
+ Salary
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ "processing": true,
+ "serverSide": true,
+ "ajax": "scripts/server_processing.php"
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/bootstrap.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/bootstrap.html
new file mode 100644
index 0000000..8b24c1c
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/bootstrap.html
@@ -0,0 +1,742 @@
+
+
+
+
+
+
+
+
+ DataTables example - Bootstrap
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Bootstrap
+
+
+ DataTables can integrate seamlessly with Bootstrap using Bootstrap's table
+ styling options to present a consistent interface with your Bootstrap driven site / app.
+
+ DataTables' Bootstrap integration also provides a renderer for the pagination control in DataTables to ensure that the pagination of the table is also styled
+ consistently by Bootstrap.
+
+ This integration is done simply by including the DataTables Bootstrap files (CSS and JS) which will set the defaults needed for DataTables to be initialised as
+ normal, as shown in this examples.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
body { font-size: 140%; }
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/cell-border.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/cell-border.html
new file mode 100644
index 0000000..0126d59
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/cell-border.html
@@ -0,0 +1,727 @@
+
+
+
+
+
+
+
+
+ DataTables example - Base style - cell borders
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Base style - cell borders
+
+
+ This example shows DataTables with just the cell-border
class specified, giving a strong delineation between individual cells.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/compact.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/compact.html
new file mode 100644
index 0000000..abaca94
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/compact.html
@@ -0,0 +1,728 @@
+
+
+
+
+
+
+
+
+ DataTables example - Base style - compact
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Base style - compact
+
+
+ The compact
class is used to reduce the amount of white-space the default styling for the DataTable uses, increasing the information density on
+ screen, as shown below.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/display.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/display.html
new file mode 100644
index 0000000..c7a852b
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/display.html
@@ -0,0 +1,742 @@
+
+
+
+
+
+
+
+
+ DataTables example - Base style
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Base style
+
+
+ The DataTables default style file has a number of features which can be enabled based on the class name of the table. These features are:
+
+
+ cell-border
- Cells with a border
+ compact
- Increase the data density by reducing the cell padding
+ hover
- Highlight a row when hovered over
+ order-column
- Highlight the cells in the column currently being ordering upon
+ row-border
- Rows with a border
+ stripe
- Zebra striped rows
+
+
+ These classes can be combined (simply assign multiple classes to the table) to build up the styling that you want for your table. For more information on the
+ options in the DataTables stylesheet, please refer to the DataTables styling manual
+
+ The display
class is a short-cut for specifying the stripe hover order-column row-border
as the class name for a table. This is shown
+ in the example below.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/foundation.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/foundation.html
new file mode 100644
index 0000000..2ce7df3
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/foundation.html
@@ -0,0 +1,741 @@
+
+
+
+
+
+
+
+
+ DataTables example - Foundation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Foundation
+
+
+ DataTables can integrate seamlessly with Foundation using Foundations's table styling options to present a consistent interface with your Foundation driven site / app.
+
+ DataTables' Foundation integration also provides a renderer for the pagination control in DataTables to ensure that the pagination of the table is also styled
+ consistently by Foundation.
+
+ This integration is done simply by including the DataTables Foundation files (CSS and JS) which will set the defaults needed for DataTables to be initialised as
+ normal, as shown in this examples.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/hover.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/hover.html
new file mode 100644
index 0000000..551e98f
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/hover.html
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+ DataTables example - Base style - hover
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/index.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/index.html
new file mode 100644
index 0000000..d1bf414
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/index.html
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables examples - Styling
+
+
+
+
+
+ DataTables example Styling
+
+
+ When using DataTables, you want your tables to fit in with your site / app to make the end user experience as seamless as possible. For this reason, DataTables
+ provides an easy to customise core stylesheet, which has a number of features that you can enable or disable as you required. Additionally there are a number of
+ integration packages which can be used to fit DataTables into a site which uses some of the popular CSS libraries such as Twitter Bootstrap and Foundation. Or of
+ course you can craft your own CSS to fit it into your site perfectly!
+
+ This section includes examples of how DataTables can be styled using these methods.
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/jqueryUI.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/jqueryUI.html
new file mode 100644
index 0000000..a199881
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/jqueryUI.html
@@ -0,0 +1,743 @@
+
+
+
+
+
+
+
+
+ DataTables example - jQuery UI ThemeRoller
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example jQuery UI ThemeRoller
+
+
+ DataTables has the ability to integrate seamlessly with almost any styling library, and integration files are provided for several of the popular styling
+ libraries, including jQuery UI.
+
+ To have your table styles integrate with jQuery UI's ThemeRoller styles, simply include the DataTables CSS and JS integration files for jQuery UI, as shown in
+ this example. Note also that because jQuery doesn't provide table styles like some other CSS frameworks, the CSS integration file does add this styling
+ information.
+
+ Please note that DataTables 1.10- actually has built-in support for jQuery UI styling integration through the jQueryUIDT
option. However, this
+ option is deprecated in DataTables 1.10 and will be removed DataTables 1.11, matching how styling integration is provided for other libraries - a more modular,
+ maintainable and extensible method. The method presented on this page is the method that will be use in future.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/no-classes.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/no-classes.html
new file mode 100644
index 0000000..75a4511
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/no-classes.html
@@ -0,0 +1,727 @@
+
+
+
+
+
+
+
+
+ DataTables example - Base style - no styling classes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Base style - no styling classes
+
+
+ This example shows the base DataTables style file being used, with none of the additional feature style classes being used.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/order-column.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/order-column.html
new file mode 100644
index 0000000..c5e4470
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/order-column.html
@@ -0,0 +1,728 @@
+
+
+
+
+
+
+
+
+ DataTables example - Base style - order-column
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Base style - order-column
+
+
+ This example shows DataTables with just the order-column
class specified. Typically you would want to use the stripe
feature class in
+ addition to order-column
(possibly hover
as well), but this example shows just the ordered column highlighting.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/row-border.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/row-border.html
new file mode 100644
index 0000000..01be832
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/row-border.html
@@ -0,0 +1,727 @@
+
+
+
+
+
+
+
+
+ DataTables example - Base style - row borders
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Base style - row borders
+
+
+ This example shows DataTables with just the row-border
class specified, which can create a pleasing, minimalist, interface for your tables.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/stripe.html b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/stripe.html
new file mode 100644
index 0000000..2d893ab
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/examples/styling/stripe.html
@@ -0,0 +1,727 @@
+
+
+
+
+
+
+
+
+ DataTables example - Base style - stripe
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DataTables example Base style - stripe
+
+
+ This example shows DataTables with just the stripe
class specified.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').dataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+
+
+
+
+ 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
+ additional CSS used is shown below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+
+
+
+
+
+ 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
+ loaded.
+
+
+
+ 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
+ processing scripts can be written in any language, using the protocol described in the DataTables
+ documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/Readme.txt b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/Readme.txt
new file mode 100644
index 0000000..c7ed83a
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/Readme.txt
@@ -0,0 +1,38 @@
+# AutoFill
+
+AutoFill gives an Excel like option to a DataTable to click and drag over multiple cells, filling in information over the selected cells and incrementing numbers as needed. Key features include:
+
+* Click and drag cell content insertion
+* Automatic incrementing of numeric information
+* Enable and disable on any column
+* Detailed callback functions for customisation
+* Support for both DataTables and browser window scrolling
+
+
+# Installation
+
+To use AutoFill, first download DataTables ( http://datatables.net/download ) and place the unzipped AutoFill package into a `extensions` directory in the DataTables package. This will allow the pages in the examples to operate correctly. To see the examples running, open the `examples` directory in your web-browser.
+
+
+# Basic usage
+
+AutoFill is initialised using the `$.fn.dataTable.AutoFill` constructor. For example:
+
+```js
+$(document).ready( function () {
+ var table = $('#example').dataTable();
+ new $.fn.dataTable.AutoFill( table );
+} );
+```
+
+
+# Documentation / support
+
+* Documentation: http://datatables.net/extensions/autofill/
+* DataTables support forums: http://datatables.net/forums
+
+
+# GitHub
+
+If you fancy getting involved with the development of AutoFill and help make it better, please refer to its GitHub repo: https://github.com/DataTables/AutoFill
+
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/css/dataTables.autoFill.css b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/css/dataTables.autoFill.css
new file mode 100644
index 0000000..fb589d2
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/css/dataTables.autoFill.css
@@ -0,0 +1,24 @@
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * AutoFill styles
+ */
+
+div.AutoFill_filler {
+ display: none;
+ position: absolute;
+ height: 14px;
+ width: 14px;
+ background: url(../images/filler.png) no-repeat center center;
+ z-index: 1002;
+}
+
+div.AutoFill_border {
+ display: none;
+ position: absolute;
+ background-color: #0063dc;
+ z-index: 1001;
+
+ box-shadow: 0px 0px 5px #76b4ff;
+ -moz-box-shadow: 0px 0px 5px #76b4ff;
+ -webkit-box-shadow: 0px 0px 5px #76b4ff;
+}
+
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/css/dataTables.autoFill.min.css b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/css/dataTables.autoFill.min.css
new file mode 100644
index 0000000..4e1c992
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/css/dataTables.autoFill.min.css
@@ -0,0 +1 @@
+div.AutoFill_filler{display:none;position:absolute;height:14px;width:14px;background:url(../images/filler.png) no-repeat center center;z-index:1002}div.AutoFill_border{display:none;position:absolute;background-color:#0063dc;z-index:1001;box-shadow:0px 0px 5px #76b4ff;-moz-box-shadow:0px 0px 5px #76b4ff;-webkit-box-shadow:0px 0px 5px #76b4ff}
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/columns.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/columns.html
new file mode 100644
index 0000000..efbea2c
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/columns.html
@@ -0,0 +1,644 @@
+
+
+
+
+
+
+
+
+ AutoFill example - Column options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AutoFill example Column options
+
+
+ Columns can be enabled (which they are by default) and disabled from providing the end user with
+ AutoFill abilities by using either columns
or columnDefs
and the
+ enable
option. These two arrays work in exactly the same way as in DataTables.
+
+ This example shows how disabling columns counting from the right hand side of the table can be
+ achieved. In this case, the last three columns.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ var table = $('#example').dataTable();
+
+ new $.fn.dataTable.AutoFill( table, {
+ "columnDefs": [
+ { enable: false, targets: [-1, -2] },
+ { increment: false, targets: 3 }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/complete-callback.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/complete-callback.html
new file mode 100644
index 0000000..0201449
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/complete-callback.html
@@ -0,0 +1,652 @@
+
+
+
+
+
+
+
+
+ AutoFill example - Complete callback
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AutoFill example Complete callback
+
+
+ AutoFill provides a number of customisable callback functions so you can tailor it's actions to
+ exactly what you need. This example shows the use of the complete
callback function which
+ is executed at the end of an auto-fill drag, providing information about the cells that were
+ altered.
+
+ For a complete description of the complete
callback, please refer to the AutoFill documentation.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ var table = $('#example').dataTable();
+
+ new $.fn.dataTable.AutoFill( table, {
+ complete: function ( altered ) {
+ var last = altered[ altered.length-1 ];
+ alert(
+ altered.length+' cells were altered in this auto-fill. The '+
+ 'value of the last cell altered was: '+last.oldValue+' and is '+
+ 'now '+last.newValue
+ );
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/fill-both.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/fill-both.html
new file mode 100644
index 0000000..01e5417
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/fill-both.html
@@ -0,0 +1,641 @@
+
+
+
+
+
+
+
+
+ AutoFill example - Horizontal and vertical fill
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AutoFill example Horizontal and vertical fill
+
+
+ By default AutoFill will allow the fill to operate only on a single column at a time (i.e.
+ vertically). However, it has the ability to provide the fill either horizontally, over both axis or
+ limited to just one axis depending on the direction of the drag. This option is provided by the
+ mode
sanitisation option.
+
+ In this case it is set to both
(i.e. both horizontal and vertical axis) to provide the
+ filler along a row, rather than a column.
+
+ For the full range of options and syntax for mode
please refer to the AutoFill documentation.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ new $.fn.dataTable.AutoFill( table, {
+ mode: 'both'
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/fill-horizontal.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/fill-horizontal.html
new file mode 100644
index 0000000..843ec28
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/fill-horizontal.html
@@ -0,0 +1,641 @@
+
+
+
+
+
+
+
+
+ AutoFill example - Horizontal fill
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AutoFill example Horizontal fill
+
+
+ By default AutoFill will allow the fill to operate only on a single column at a time (i.e.
+ vertically). However, it has the ability to provide the fill either horizontally, over both axis or
+ limited to just one axis depending on the direction of the drag. This option is provided by the
+ mode
sanitisation option.
+
+ In this case it is set to x
(i.e. horizontal axis) to provide the filler along a row,
+ rather than a column.
+
+ For the full range of options and syntax for mode
please refer to the AutoFill documentation.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ new $.fn.dataTable.AutoFill( table, {
+ mode: 'x'
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/index.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/index.html
new file mode 100644
index 0000000..c70c12d
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/index.html
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AutoFill examples - AutoFill examples
+
+
+
+
+
+ AutoFill example AutoFill examples
+
+
+ AutoFill gives an Excel like option to a DataTable to click and drag over multiple cells, filling in
+ information over the selected cells and incrementing numbers as needed.
+
+ Thanks to Phoniax AS for their sponsorship of this plug-in for
+ DataTables.
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/scrolling.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/scrolling.html
new file mode 100644
index 0000000..b63eb1c
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/scrolling.html
@@ -0,0 +1,638 @@
+
+
+
+
+
+
+
+
+ AutoFill example - Scrolling DataTable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AutoFill example Scrolling DataTable
+
+
+ When dragging an AutoFill handle, the table (if DataTables scrolling is enabled) or the window will
+ be automatically scrolled, as you approach the edge of the scrolling component. The example below shows
+ the effect with DataTables scrolling (and also window if needed).
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ var table = $('#example').dataTable( {
+ scrollY: 200,
+ scrollCollapse: false,
+ paginate: false
+ } );
+
+ new $.fn.dataTable.AutoFill( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/simple.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/simple.html
new file mode 100644
index 0000000..d5c0f1f
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/simple.html
@@ -0,0 +1,631 @@
+
+
+
+
+
+
+
+
+ AutoFill example - Basic initialisation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AutoFill example Basic initialisation
+
+
+ AutoFill gives an Excel like option to a DataTable to click and drag over multiple cells, filling in
+ information over the selected cells and incrementing numbers as needed.
+
+ AutoFill is initialised using the $.fn.dataTable.AutoFill
function as shown in the
+ example below. It requires one parameter, the DataTable instance that AutoFill is to operate on, and
+ optionally a second configuration parameter, which is shown in the other AutoFill examples.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+ new $.fn.dataTable.AutoFill( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/step-callback.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/step-callback.html
new file mode 100644
index 0000000..58934a2
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/examples/step-callback.html
@@ -0,0 +1,660 @@
+
+
+
+
+
+
+
+
+ AutoFill example - Step callback
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AutoFill example Step callback
+
+
+ By default, AutoFill will increment cells that contain numbers by a single digit for each cell that
+ is iterated over (try the Age column below for example). This behaviour can be disabled
+ completely using the increment
column option, but it can also be modified to suit your
+ requirements through use of the step
column callback function.
+
+ The step
callback is executed for each cell in the auto-fill set and gives complete
+ control over how data is incremented. The example below shows the step function being used on the
+ Salary column to increment by 100, rather than 1 for each cell.
+
+ For a complete description of the step
callback, please refer to the AutoFill documentation.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ var table = $('#example').dataTable();
+
+ new $.fn.dataTable.AutoFill( table, {
+ columnDefs: [ {
+ targets: -1,
+ step: function ( cell, read, last, i, x, y ) {
+ var val = parseInt( (last || read).replace(/[$,]/g, ''), 10 );
+ val += (x<0 || y<0 ? -100 : 100); // - if going back up, + if going down
+
+ // Format for the currency column
+ return '$'+val.toString().replace( /\B(?=(\d{3})+(?!\d))/g, ',' );
+ }
+ } ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/images/filler.png b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/images/filler.png
new file mode 100644
index 0000000..f2af65d
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/images/filler.png
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/js/dataTables.autoFill.js b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/js/dataTables.autoFill.js
new file mode 100644
index 0000000..4b8b217
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/AutoFill/js/dataTables.autoFill.js
@@ -0,0 +1,855 @@
+/*! AutoFill 1.2.1
+ * ©2008-2014 SpryMedia Ltd - datatables.net/license
+ */
+
+/**
+ * @summary AutoFill
+ * @description Add Excel like click and drag auto-fill options to DataTables
+ * @version 1.2.1
+ * @file dataTables.autoFill.js
+ * @author SpryMedia Ltd (www.sprymedia.co.uk)
+ * @contact www.sprymedia.co.uk/contact
+ * @copyright Copyright 2010-2014 SpryMedia Ltd.
+ *
+ * This source file is free software, available under the following license:
+ * MIT license - http://datatables.net/license/mit
+ *
+ * This source file is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
+ *
+ * For details please refer to: http://www.datatables.net
+ */
+
+(function( window, document, undefined ) {
+
+var factory = function( $, DataTable ) {
+"use strict";
+
+/**
+ * AutoFill provides Excel like auto-fill features for a DataTable
+ *
+ * @class AutoFill
+ * @constructor
+ * @param {object} oTD DataTables settings object
+ * @param {object} oConfig Configuration object for AutoFill
+ */
+var AutoFill = function( oDT, oConfig )
+{
+ /* Sanity check that we are a new instance */
+ if ( ! (this instanceof AutoFill) ) {
+ throw( "Warning: AutoFill must be initialised with the keyword 'new'" );
+ }
+
+ if ( ! $.fn.dataTableExt.fnVersionCheck('1.7.0') ) {
+ throw( "Warning: AutoFill requires DataTables 1.7 or greater");
+ }
+
+
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Public class variables
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+
+ this.c = {};
+
+ /**
+ * @namespace Settings object which contains customisable information for AutoFill instance
+ */
+ this.s = {
+ /**
+ * @namespace Cached information about the little dragging icon (the filler)
+ */
+ "filler": {
+ "height": 0,
+ "width": 0
+ },
+
+ /**
+ * @namespace Cached information about the border display
+ */
+ "border": {
+ "width": 2
+ },
+
+ /**
+ * @namespace Store for live information for the current drag
+ */
+ "drag": {
+ "startX": -1,
+ "startY": -1,
+ "startTd": null,
+ "endTd": null,
+ "dragging": false
+ },
+
+ /**
+ * @namespace Data cache for information that we need for scrolling the screen when we near
+ * the edges
+ */
+ "screen": {
+ "interval": null,
+ "y": 0,
+ "height": 0,
+ "scrollTop": 0
+ },
+
+ /**
+ * @namespace Data cache for the position of the DataTables scrolling element (when scrolling
+ * is enabled)
+ */
+ "scroller": {
+ "top": 0,
+ "bottom": 0
+ },
+
+ /**
+ * @namespace Information stored for each column. An array of objects
+ */
+ "columns": []
+ };
+
+
+ /**
+ * @namespace Common and useful DOM elements for the class instance
+ */
+ this.dom = {
+ "table": null,
+ "filler": null,
+ "borderTop": null,
+ "borderRight": null,
+ "borderBottom": null,
+ "borderLeft": null,
+ "currentTarget": null
+ };
+
+
+
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Public class methods
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+
+ /**
+ * Retreieve the settings object from an instance
+ * @method fnSettings
+ * @returns {object} AutoFill settings object
+ */
+ this.fnSettings = function () {
+ return this.s;
+ };
+
+
+ /* Constructor logic */
+ this._fnInit( oDT, oConfig );
+ return this;
+};
+
+
+
+AutoFill.prototype = {
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Private methods (they are of course public in JS, but recommended as private)
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+
+ /**
+ * Initialisation
+ * @method _fnInit
+ * @param {object} dt DataTables settings object
+ * @param {object} config Configuration object for AutoFill
+ * @returns void
+ */
+ "_fnInit": function ( dt, config )
+ {
+ var
+ that = this,
+ i, iLen;
+
+ // Use DataTables API to get the settings allowing selectors, instances
+ // etc to be used, or for backwards compatibility get from the old
+ // fnSettings method
+ this.s.dt = DataTable.Api ?
+ new DataTable.Api( dt ).settings()[0] :
+ dt.fnSettings();
+ this.s.init = config || {};
+ this.dom.table = this.s.dt.nTable;
+
+ $.extend( true, this.c, AutoFill.defaults, config );
+
+ /* Add and configure the columns */
+ this._initColumns();
+
+ /* Auto Fill click and drag icon */
+ var filler = $('', {
+ 'class': 'AutoFill_filler'
+ } )
+ .appendTo( 'body' );
+ this.dom.filler = filler[0];
+
+ // Get the height / width of the click element
+ this.s.filler.height = filler.height();
+ this.s.filler.width = filler.width();
+ filler[0].style.display = "none";
+
+ /* Border display - one div for each side. We can't just use a single
+ * one with a border, as we want the events to effectively pass through
+ * the transparent bit of the box
+ */
+ var border;
+ var appender = document.body;
+ if ( that.s.dt.oScroll.sY !== "" ) {
+ that.s.dt.nTable.parentNode.style.position = "relative";
+ appender = that.s.dt.nTable.parentNode;
+ }
+
+ border = $('', {
+ "class": "AutoFill_border"
+ } );
+ this.dom.borderTop = border.clone().appendTo( appender )[0];
+ this.dom.borderRight = border.clone().appendTo( appender )[0];
+ this.dom.borderBottom = border.clone().appendTo( appender )[0];
+ this.dom.borderLeft = border.clone().appendTo( appender )[0];
+
+ /* Events */
+ filler.on( 'mousedown.DTAF', function (e) {
+ this.onselectstart = function() { return false; };
+ that._fnFillerDragStart.call( that, e );
+ return false;
+ } );
+
+ $('tbody', this.dom.table).on(
+ 'mouseover.DTAF mouseout.DTAF',
+ '>tr>td, >tr>th',
+ function (e) {
+ that._fnFillerDisplay.call( that, e );
+ }
+ );
+
+ $(this.dom.table).on( 'destroy.dt.DTAF', function () {
+ filler.off( 'mousedown.DTAF' ).remove();
+ $('tbody', this.dom.table).off( 'mouseover.DTAF mouseout.DTAF' );
+ } );
+ },
+
+
+ _initColumns: function ( )
+ {
+ var that = this;
+ var i, ien;
+ var dt = this.s.dt;
+ var config = this.s.init;
+
+ for ( i=0, ien=dt.aoColumns.length ; i
+ offsetEnd.left) {
+ x1 = offsetEnd.left - border;
+ x2 = offsetStart.left + $(nStart).outerWidth();
+ width = offsetStart.left + $(nStart).outerWidth() - offsetEnd.left + (2*border);
+ }
+
+ if ( this.s.dt.oScroll.sY !== "" )
+ {
+ /* The border elements are inside the DT scroller - so position relative to that */
+ var
+ offsetScroll = $(this.s.dt.nTable.parentNode).offset(),
+ scrollTop = $(this.s.dt.nTable.parentNode).scrollTop(),
+ scrollLeft = $(this.s.dt.nTable.parentNode).scrollLeft();
+
+ x1 -= offsetScroll.left - scrollLeft;
+ x2 -= offsetScroll.left - scrollLeft;
+ y1 -= offsetScroll.top - scrollTop;
+ y2 -= offsetScroll.top - scrollTop;
+ }
+
+ /* Top */
+ oStyle = this.dom.borderTop.style;
+ oStyle.top = y1+"px";
+ oStyle.left = x1+"px";
+ oStyle.height = this.s.border.width+"px";
+ oStyle.width = width+"px";
+
+ /* Bottom */
+ oStyle = this.dom.borderBottom.style;
+ oStyle.top = y2+"px";
+ oStyle.left = x1+"px";
+ oStyle.height = this.s.border.width+"px";
+ oStyle.width = width+"px";
+
+ /* Left */
+ oStyle = this.dom.borderLeft.style;
+ oStyle.top = y1+"px";
+ oStyle.left = x1+"px";
+ oStyle.height = height+"px";
+ oStyle.width = this.s.border.width+"px";
+
+ /* Right */
+ oStyle = this.dom.borderRight.style;
+ oStyle.top = y1+"px";
+ oStyle.left = x2+"px";
+ oStyle.height = height+"px";
+ oStyle.width = this.s.border.width+"px";
+ },
+
+
+ /**
+ * Mouse down event handler for starting a drag
+ * @method _fnFillerDragStart
+ * @param {Object} e Event object
+ * @returns void
+ */
+ "_fnFillerDragStart": function (e)
+ {
+ var that = this;
+ var startingTd = this.dom.currentTarget;
+
+ this.s.drag.dragging = true;
+
+ that.dom.borderTop.style.display = "block";
+ that.dom.borderRight.style.display = "block";
+ that.dom.borderBottom.style.display = "block";
+ that.dom.borderLeft.style.display = "block";
+
+ var coords = this._fnTargetCoords( startingTd );
+ this.s.drag.startX = coords.x;
+ this.s.drag.startY = coords.y;
+
+ this.s.drag.startTd = startingTd;
+ this.s.drag.endTd = startingTd;
+
+ this._fnUpdateBorder( startingTd, startingTd );
+
+ $(document).bind('mousemove.AutoFill', function (e) {
+ that._fnFillerDragMove.call( that, e );
+ } );
+
+ $(document).bind('mouseup.AutoFill', function (e) {
+ that._fnFillerFinish.call( that, e );
+ } );
+
+ /* Scrolling information cache */
+ this.s.screen.y = e.pageY;
+ this.s.screen.height = $(window).height();
+ this.s.screen.scrollTop = $(document).scrollTop();
+
+ if ( this.s.dt.oScroll.sY !== "" )
+ {
+ this.s.scroller.top = $(this.s.dt.nTable.parentNode).offset().top;
+ this.s.scroller.bottom = this.s.scroller.top + $(this.s.dt.nTable.parentNode).height();
+ }
+
+ /* Scrolling handler - we set an interval (which is cancelled on mouse up) which will fire
+ * regularly and see if we need to do any scrolling
+ */
+ this.s.screen.interval = setInterval( function () {
+ var iScrollTop = $(document).scrollTop();
+ var iScrollDelta = iScrollTop - that.s.screen.scrollTop;
+ that.s.screen.y += iScrollDelta;
+
+ if ( that.s.screen.height - that.s.screen.y + iScrollTop < 50 )
+ {
+ $('html, body').animate( {
+ "scrollTop": iScrollTop + 50
+ }, 240, 'linear' );
+ }
+ else if ( that.s.screen.y - iScrollTop < 50 )
+ {
+ $('html, body').animate( {
+ "scrollTop": iScrollTop - 50
+ }, 240, 'linear' );
+ }
+
+ if ( that.s.dt.oScroll.sY !== "" )
+ {
+ if ( that.s.screen.y > that.s.scroller.bottom - 50 )
+ {
+ $(that.s.dt.nTable.parentNode).animate( {
+ "scrollTop": $(that.s.dt.nTable.parentNode).scrollTop() + 50
+ }, 240, 'linear' );
+ }
+ else if ( that.s.screen.y < that.s.scroller.top + 50 )
+ {
+ $(that.s.dt.nTable.parentNode).animate( {
+ "scrollTop": $(that.s.dt.nTable.parentNode).scrollTop() - 50
+ }, 240, 'linear' );
+ }
+ }
+ }, 250 );
+ },
+
+
+ /**
+ * Mouse move event handler for during a move. See if we want to update the display based on the
+ * new cursor position
+ * @method _fnFillerDragMove
+ * @param {Object} e Event object
+ * @returns void
+ */
+ "_fnFillerDragMove": function (e)
+ {
+ if ( e.target && e.target.nodeName.toUpperCase() == "TD" &&
+ e.target != this.s.drag.endTd )
+ {
+ var coords = this._fnTargetCoords( e.target );
+
+ if ( this.c.mode == "y" && coords.x != this.s.drag.startX )
+ {
+ e.target = $('tbody>tr:eq('+coords.y+')>td:eq('+this.s.drag.startX+')', this.dom.table)[0];
+ }
+ if ( this.c.mode == "x" && coords.y != this.s.drag.startY )
+ {
+ e.target = $('tbody>tr:eq('+this.s.drag.startY+')>td:eq('+coords.x+')', this.dom.table)[0];
+ }
+
+ if ( this.c.mode == "either")
+ {
+ if(coords.x != this.s.drag.startX )
+ {
+ e.target = $('tbody>tr:eq('+this.s.drag.startY+')>td:eq('+coords.x+')', this.dom.table)[0];
+ }
+ else if ( coords.y != this.s.drag.startY ) {
+ e.target = $('tbody>tr:eq('+coords.y+')>td:eq('+this.s.drag.startX+')', this.dom.table)[0];
+ }
+ }
+
+ // update coords
+ if ( this.c.mode !== "both" ) {
+ coords = this._fnTargetCoords( e.target );
+ }
+
+ var drag = this.s.drag;
+ drag.endTd = e.target;
+
+ if ( coords.y >= this.s.drag.startY ) {
+ this._fnUpdateBorder( drag.startTd, drag.endTd );
+ }
+ else {
+ this._fnUpdateBorder( drag.endTd, drag.startTd );
+ }
+ this._fnFillerPosition( e.target );
+ }
+
+ /* Update the screen information so we can perform scrolling */
+ this.s.screen.y = e.pageY;
+ this.s.screen.scrollTop = $(document).scrollTop();
+
+ if ( this.s.dt.oScroll.sY !== "" )
+ {
+ this.s.scroller.scrollTop = $(this.s.dt.nTable.parentNode).scrollTop();
+ this.s.scroller.top = $(this.s.dt.nTable.parentNode).offset().top;
+ this.s.scroller.bottom = this.s.scroller.top + $(this.s.dt.nTable.parentNode).height();
+ }
+ },
+
+
+ /**
+ * Mouse release handler - end the drag and take action to update the cells with the needed values
+ * @method _fnFillerFinish
+ * @param {Object} e Event object
+ * @returns void
+ */
+ "_fnFillerFinish": function (e)
+ {
+ var that = this, i, iLen, j;
+
+ $(document).unbind('mousemove.AutoFill mouseup.AutoFill');
+
+ this.dom.borderTop.style.display = "none";
+ this.dom.borderRight.style.display = "none";
+ this.dom.borderBottom.style.display = "none";
+ this.dom.borderLeft.style.display = "none";
+
+ this.s.drag.dragging = false;
+
+ clearInterval( this.s.screen.interval );
+
+ var cells = [];
+ var table = this.dom.table;
+ var coordsStart = this._fnTargetCoords( this.s.drag.startTd );
+ var coordsEnd = this._fnTargetCoords( this.s.drag.endTd );
+ var columnIndex = function ( visIdx ) {
+ return that.s.dt.oApi._fnVisibleToColumnIndex( that.s.dt, visIdx );
+ };
+
+ // xxx - urgh - there must be a way of reducing this...
+ if ( coordsStart.y <= coordsEnd.y ) {
+ for ( i=coordsStart.y ; i<=coordsEnd.y ; i++ ) {
+ if ( coordsStart.x <= coordsEnd.x ) {
+ for ( j=coordsStart.x ; j<=coordsEnd.x ; j++ ) {
+ cells.push( {
+ node: $('tbody>tr:eq('+i+')>td:eq('+j+')', table)[0],
+ x: j - coordsStart.x,
+ y: i - coordsStart.y,
+ colIdx: columnIndex( j )
+ } );
+ }
+ }
+ else {
+ for ( j=coordsStart.x ; j>=coordsEnd.x ; j-- ) {
+ cells.push( {
+ node: $('tbody>tr:eq('+i+')>td:eq('+j+')', table)[0],
+ x: j - coordsStart.x,
+ y: i - coordsStart.y,
+ colIdx: columnIndex( j )
+ } );
+ }
+ }
+ }
+ }
+ else {
+ for ( i=coordsStart.y ; i>=coordsEnd.y ; i-- ) {
+ if ( coordsStart.x <= coordsEnd.x ) {
+ for ( j=coordsStart.x ; j<=coordsEnd.x ; j++ ) {
+ cells.push( {
+ node: $('tbody>tr:eq('+i+')>td:eq('+j+')', table)[0],
+ x: j - coordsStart.x,
+ y: i - coordsStart.y,
+ colIdx: columnIndex( j )
+ } );
+ }
+ }
+ else {
+ for ( j=coordsStart.x ; j>=coordsEnd.x ; j-- ) {
+ cells.push( {
+ node: $('tbody>tr:eq('+i+')>td:eq('+j+')', table)[0],
+ x: coordsStart.x - j,
+ y: coordsStart.y - i,
+ colIdx: columnIndex( j )
+ } );
+ }
+ }
+ }
+ }
+
+ // An auto-fill requires 2 or more cells
+ if ( cells.length <= 1 ) {
+ return;
+ }
+
+ var edited = [];
+ var previous;
+
+ for ( i=0, iLen=cells.length ; i",{"class":"AutoFill_filler"}).appendTo("body");this.dom.filler=e[0];this.s.filler.height=e.height();this.s.filler.width=e.width();e[0].style.display=
+"none";var g,f=j.body;""!==a.s.dt.oScroll.sY&&(a.s.dt.nTable.parentNode.style.position="relative",f=a.s.dt.nTable.parentNode);g=c("",{"class":"AutoFill_border"});this.dom.borderTop=g.clone().appendTo(f)[0];this.dom.borderRight=g.clone().appendTo(f)[0];this.dom.borderBottom=g.clone().appendTo(f)[0];this.dom.borderLeft=g.clone().appendTo(f)[0];e.on("mousedown.DTAF",function(b){this.onselectstart=function(){return false};a._fnFillerDragStart.call(a,b);return false});c("tbody",this.dom.table).on("mouseover.DTAF mouseout.DTAF",
+">tr>td, >tr>th",function(b){a._fnFillerDisplay.call(a,b)});c(this.dom.table).on("destroy.dt.DTAF",function(){e.off("mousedown.DTAF").remove();c("tbody",this.dom.table).off("mouseover.DTAF mouseout.DTAF")})},_initColumns:function(){var d=this,b,a,e=this.s.dt,g=this.s.init;b=0;for(a=e.aoColumns.length;bg.left&&(f=g.left-a,i=e.left+c(d).outerWidth(),j=e.left+c(d).outerWidth()-g.left+2*a);""!==this.s.dt.oScroll.sY&&(a=c(this.s.dt.nTable.parentNode).offset(),e=c(this.s.dt.nTable.parentNode).scrollTop(),
+g=c(this.s.dt.nTable.parentNode).scrollLeft(),f-=a.left-g,i-=a.left-g,n-=a.top-e,h-=a.top-e);a=this.dom.borderTop.style;a.top=n+"px";a.left=f+"px";a.height=this.s.border.width+"px";a.width=j+"px";a=this.dom.borderBottom.style;a.top=h+"px";a.left=f+"px";a.height=this.s.border.width+"px";a.width=j+"px";a=this.dom.borderLeft.style;a.top=n+"px";a.left=f+"px";a.height=k+"px";a.width=this.s.border.width+"px";a=this.dom.borderRight.style;a.top=n+"px";a.left=i+"px";a.height=k+"px";a.width=this.s.border.width+
+"px"},_fnFillerDragStart:function(d){var b=this,a=this.dom.currentTarget;this.s.drag.dragging=!0;b.dom.borderTop.style.display="block";b.dom.borderRight.style.display="block";b.dom.borderBottom.style.display="block";b.dom.borderLeft.style.display="block";var e=this._fnTargetCoords(a);this.s.drag.startX=e.x;this.s.drag.startY=e.y;this.s.drag.startTd=a;this.s.drag.endTd=a;this._fnUpdateBorder(a,a);c(j).bind("mousemove.AutoFill",function(a){b._fnFillerDragMove.call(b,a)});c(j).bind("mouseup.AutoFill",
+function(a){b._fnFillerFinish.call(b,a)});this.s.screen.y=d.pageY;this.s.screen.height=c(o).height();this.s.screen.scrollTop=c(j).scrollTop();""!==this.s.dt.oScroll.sY&&(this.s.scroller.top=c(this.s.dt.nTable.parentNode).offset().top,this.s.scroller.bottom=this.s.scroller.top+c(this.s.dt.nTable.parentNode).height());this.s.screen.interval=setInterval(function(){var a=c(j).scrollTop();b.s.screen.y=b.s.screen.y+(a-b.s.screen.scrollTop);b.s.screen.height-b.s.screen.y+a<50?c("html, body").animate({scrollTop:a+
+50},240,"linear"):b.s.screen.y-a<50&&c("html, body").animate({scrollTop:a-50},240,"linear");b.s.dt.oScroll.sY!==""&&(b.s.screen.y>b.s.scroller.bottom-50?c(b.s.dt.nTable.parentNode).animate({scrollTop:c(b.s.dt.nTable.parentNode).scrollTop()+50},240,"linear"):b.s.screen.ytr:eq("+b.y+")>td:eq("+this.s.drag.startX+")",this.dom.table)[0]);"x"==this.c.mode&&b.y!=this.s.drag.startY&&(d.target=c("tbody>tr:eq("+this.s.drag.startY+")>td:eq("+b.x+")",this.dom.table)[0]);"either"==this.c.mode&&(b.x!=this.s.drag.startX?d.target=c("tbody>tr:eq("+this.s.drag.startY+")>td:eq("+b.x+")",this.dom.table)[0]:b.y!=this.s.drag.startY&&(d.target=c("tbody>tr:eq("+b.y+")>td:eq("+this.s.drag.startX+
+")",this.dom.table)[0]));"both"!==this.c.mode&&(b=this._fnTargetCoords(d.target));var a=this.s.drag;a.endTd=d.target;b.y>=this.s.drag.startY?this._fnUpdateBorder(a.startTd,a.endTd):this._fnUpdateBorder(a.endTd,a.startTd);this._fnFillerPosition(d.target)}this.s.screen.y=d.pageY;this.s.screen.scrollTop=c(j).scrollTop();""!==this.s.dt.oScroll.sY&&(this.s.scroller.scrollTop=c(this.s.dt.nTable.parentNode).scrollTop(),this.s.scroller.top=c(this.s.dt.nTable.parentNode).offset().top,this.s.scroller.bottom=
+this.s.scroller.top+c(this.s.dt.nTable.parentNode).height())},_fnFillerFinish:function(){var d=this,b,a;c(j).unbind("mousemove.AutoFill mouseup.AutoFill");this.dom.borderTop.style.display="none";this.dom.borderRight.style.display="none";this.dom.borderBottom.style.display="none";this.dom.borderLeft.style.display="none";this.s.drag.dragging=!1;clearInterval(this.s.screen.interval);var e=[],g=this.dom.table,f=this._fnTargetCoords(this.s.drag.startTd),i=this._fnTargetCoords(this.s.drag.endTd),h=function(a){return d.s.dt.oApi._fnVisibleToColumnIndex(d.s.dt,
+a)};if(f.y<=i.y)for(b=f.y;b<=i.y;b++)if(f.x<=i.x)for(a=f.x;a<=i.x;a++)e.push({node:c("tbody>tr:eq("+b+")>td:eq("+a+")",g)[0],x:a-f.x,y:b-f.y,colIdx:h(a)});else for(a=f.x;a>=i.x;a--)e.push({node:c("tbody>tr:eq("+b+")>td:eq("+a+")",g)[0],x:a-f.x,y:b-f.y,colIdx:h(a)});else for(b=f.y;b>=i.y;b--)if(f.x<=i.x)for(a=f.x;a<=i.x;a++)e.push({node:c("tbody>tr:eq("+b+")>td:eq("+a+")",g)[0],x:a-f.x,y:b-f.y,colIdx:h(a)});else for(a=f.x;a>=i.x;a--)e.push({node:c("tbody>tr:eq("+b+")>td:eq("+a+")",g)[0],x:f.x-a,y:f.y-
+b,colIdx:h(a)});if(!(1>=e.length)){var g=[],m;b=0;for(a=e.length;bg||0>f?-1:1)):a===m?b:a}}};return h};"function"===typeof define&&define.amd?
+define(["jquery","datatables"],l):"object"===typeof exports?l(require("jquery"),require("datatables")):jQuery&&!jQuery.fn.dataTable.AutoFill&&l(jQuery,jQuery.fn.dataTable)})(window,document);
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/Readme.txt b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/Readme.txt
new file mode 100644
index 0000000..6adb50d
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/Readme.txt
@@ -0,0 +1,39 @@
+# ColReorder
+
+ColReorder adds the ability for the end user to click and drag column headers to reorder a table as they see fit, to DataTables. Key features include:
+
+* Very easy integration with DataTables
+* Tight integration with all other DataTables plug-ins
+* The ability to exclude the first (or more) column from being movable
+* Predefine a column order
+* Save staving integration with DataTables
+
+
+# Installation
+
+To use ColReorder, first download DataTables ( http://datatables.net/download ) and place the unzipped ColReorder package into a `extensions` directory in the DataTables package. This will allow the pages in the examples to operate correctly. To see the examples running, open the `examples` directory in your web-browser.
+
+
+# Basic usage
+
+ColReorder is initialised using the `R` option that it adds to DataTables' `dom` option. For example:
+
+```js
+$(document).ready( function () {
+ $('#example').dataTable( {
+ "dom": 'Rlfrtip'
+ } );
+} );
+```
+
+
+# Documentation / support
+
+* Documentation: http://datatables.net/extensions/colreorder/
+* DataTables support forums: http://datatables.net/forums
+
+
+# GitHub
+
+If you fancy getting involved with the development of ColReorder and help make it better, please refer to its GitHub repo: https://github.com/DataTables/ColReorder
+
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/css/dataTables.colReorder.css b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/css/dataTables.colReorder.css
new file mode 100644
index 0000000..989c069
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/css/dataTables.colReorder.css
@@ -0,0 +1,14 @@
+/*
+ * Namespace DTCR - "DataTables ColReorder" plug-in
+ */
+
+table.DTCR_clonedTable {
+ background-color: rgba(255, 255, 255, 0.7);
+ z-index: 202;
+}
+
+div.DTCR_pointer {
+ width: 1px;
+ background-color: #0259C4;
+ z-index: 201;
+}
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/css/dataTables.colReorder.min.css b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/css/dataTables.colReorder.min.css
new file mode 100644
index 0000000..7894790
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/css/dataTables.colReorder.min.css
@@ -0,0 +1 @@
+table.DTCR_clonedTable{background-color:rgba(255,255,255,0.7);z-index:202}div.DTCR_pointer{width:1px;background-color:#0259C4;z-index:201}
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/alt_insert.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/alt_insert.html
new file mode 100644
index 0000000..23bc9b7
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/alt_insert.html
@@ -0,0 +1,649 @@
+
+
+
+
+
+
+
+ ColReorder example - Alternative insert styling
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example Alternative insert styling
+
+
+ Using CSS it is easy to modify the insert bar to suit your web-site. This example shows how an arrow
+ can be used to show the insert point rather than the straight bar used in the other examples by simply
+ adding an extra CSS rule to include the image.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'Rlfrtip'
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
div.DTCR_pointer {
+ margin-top: -15px;
+ margin-left: -9px;
+ width: 18px;
+ background: url('../images/insert.png') no-repeat top left;
+}
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/col_filter.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/col_filter.html
new file mode 100644
index 0000000..87df9b0
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/col_filter.html
@@ -0,0 +1,669 @@
+
+
+
+
+
+
+
+
+ ColReorder example - Individual column filtering
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example Individual column filtering
+
+
+ This example of how to use ColReorder shows how it can with with DataTables' ability to do
+ individual column filtering. The basic example is exactly the same as the DataTables column filtering
+ example, but with ColReorder also added to the table (through the R
option for domDT
).
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ // Setup - add a text input to each footer cell
+ $('#example tfoot th').each( function () {
+ var title = $('#example thead th').eq( $(this).index() ).text();
+ $(this).html( '<input type="text" placeholder="Search '+title+'" />' );
+ } );
+
+ // DataTable
+ var table = $('#example').DataTable( {
+ dom: 'Rlfrtip'
+ } );
+
+ // Apply the filter
+ $("#example tfoot input").on( 'keyup change', function () {
+ table
+ .column( $(this).parent().index()+':visible' )
+ .search( this.value )
+ .draw();
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/colvis.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/colvis.html
new file mode 100644
index 0000000..6f83141
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/colvis.html
@@ -0,0 +1,649 @@
+
+
+
+
+
+
+
+
+ ColReorder example - ColVis integration
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example ColVis integration
+
+
+ ColReorder interfaces with the ColVis extension for
+ DataTables by updating the order of the list of columns whenever a reorder is done. This is shown in
+ the example below, where one column has been initially hidden to add extra emphasis to ColVis.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ dom: 'RC<"clear">lfrtip',
+ columnDefs: [
+ { visible: false, targets: 1 }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/fixedcolumns.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/fixedcolumns.html
new file mode 100644
index 0000000..409f03a
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/fixedcolumns.html
@@ -0,0 +1,846 @@
+
+
+
+
+
+
+
+
+ ColReorder example - FixedColumns integration
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example FixedColumns integration
+
+
+ While ColReorder works with the built-in scrolling options in DataTables (scrollYDT
and scrollXDT
) and also the FixedColumns extension.
+
+ ColReorder provides the fixedColumnsLeft
and fixedColumnsRight
options
+ which allows you disallow reordering of the fixed columns (which is required).
+
+
+
+
+
+ First name
+ Last name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+ Extn.
+ E-mail
+
+
+
+
+
+ Tiger
+ Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+ 5421
+ t.nixon@datatables.net
+
+
+ Garrett
+ Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+ 8422
+ g.winters@datatables.net
+
+
+ Ashton
+ Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+ 1562
+ a.cox@datatables.net
+
+
+ Cedric
+ Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+ 6224
+ c.kelly@datatables.net
+
+
+ Airi
+ Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+ 5407
+ a.satou@datatables.net
+
+
+ Brielle
+ Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+ 4804
+ b.williamson@datatables.net
+
+
+ Herrod
+ Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+ 9608
+ h.chandler@datatables.net
+
+
+ Rhona
+ Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+ 6200
+ r.davidson@datatables.net
+
+
+ Colleen
+ Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+ 2360
+ c.hurst@datatables.net
+
+
+ Sonya
+ Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+ 1667
+ s.frost@datatables.net
+
+
+ Jena
+ Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+ 3814
+ j.gaines@datatables.net
+
+
+ Quinn
+ Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+ 9497
+ q.flynn@datatables.net
+
+
+ Charde
+ Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+ 6741
+ c.marshall@datatables.net
+
+
+ Haley
+ Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+ 3597
+ h.kennedy@datatables.net
+
+
+ Tatyana
+ Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+ 1965
+ t.fitzpatrick@datatables.net
+
+
+ Michael
+ Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+ 1581
+ m.silva@datatables.net
+
+
+ Paul
+ Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+ 3059
+ p.byrd@datatables.net
+
+
+ Gloria
+ Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+ 1721
+ g.little@datatables.net
+
+
+ Bradley
+ Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+ 2558
+ b.greer@datatables.net
+
+
+ Dai
+ Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+ 2290
+ d.rios@datatables.net
+
+
+ Jenette
+ Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+ 1937
+ j.caldwell@datatables.net
+
+
+ Yuri
+ Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+ 6154
+ y.berry@datatables.net
+
+
+ Caesar
+ Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+ 8330
+ c.vance@datatables.net
+
+
+ Doris
+ Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+ 3023
+ d.wilder@datatables.net
+
+
+ Angelica
+ Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+ 5797
+ a.ramos@datatables.net
+
+
+ Gavin
+ Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+ 8822
+ g.joyce@datatables.net
+
+
+ Jennifer
+ Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+ 9239
+ j.chang@datatables.net
+
+
+ Brenden
+ Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+ 1314
+ b.wagner@datatables.net
+
+
+ Fiona
+ Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+ 2947
+ f.green@datatables.net
+
+
+ Shou
+ Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+ 8899
+ s.itou@datatables.net
+
+
+ Michelle
+ House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+ 2769
+ m.house@datatables.net
+
+
+ Suki
+ Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+ 6832
+ s.burks@datatables.net
+
+
+ Prescott
+ Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+ 3606
+ p.bartlett@datatables.net
+
+
+ Gavin
+ Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+ 2860
+ g.cortez@datatables.net
+
+
+ Martena
+ Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+ 8240
+ m.mccray@datatables.net
+
+
+ Unity
+ Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+ 5384
+ u.butler@datatables.net
+
+
+ Howard
+ Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+ 7031
+ h.hatfield@datatables.net
+
+
+ Hope
+ Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+ 6318
+ h.fuentes@datatables.net
+
+
+ Vivian
+ Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+ 9422
+ v.harrell@datatables.net
+
+
+ Timothy
+ Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+ 7580
+ t.mooney@datatables.net
+
+
+ Jackson
+ Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+ 1042
+ j.bradshaw@datatables.net
+
+
+ Olivia
+ Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+ 2120
+ o.liang@datatables.net
+
+
+ Bruno
+ Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+ 6222
+ b.nash@datatables.net
+
+
+ Sakura
+ Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+ 9383
+ s.yamamoto@datatables.net
+
+
+ Thor
+ Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+ 8327
+ t.walton@datatables.net
+
+
+ Finn
+ Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+ 2927
+ f.camacho@datatables.net
+
+
+ Serge
+ Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+ 8352
+ s.baldwin@datatables.net
+
+
+ Zenaida
+ Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+ 7439
+ z.frank@datatables.net
+
+
+ Zorita
+ Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+ 4389
+ z.serrano@datatables.net
+
+
+ Jennifer
+ Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+ 3431
+ j.acosta@datatables.net
+
+
+ Cara
+ Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+ 3990
+ c.stevens@datatables.net
+
+
+ Hermione
+ Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+ 1016
+ h.butler@datatables.net
+
+
+ Lael
+ Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+ 6733
+ l.greer@datatables.net
+
+
+ Jonas
+ Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+ 8196
+ j.alexander@datatables.net
+
+
+ Shad
+ Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+ 6373
+ s.decker@datatables.net
+
+
+ Michael
+ Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+ 5384
+ m.bruce@datatables.net
+
+
+ Donna
+ Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+ 4226
+ d.snider@datatables.net
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ window.table = $('#example').DataTable( {
+ dom: 'Rlfrtip',
+ scrollX: true,
+ scrollCollapse: true,
+ columnDefs: [
+ { sortable: false, targets: 0 },
+ { sortable: false, targets: -1 }
+ ],
+ sorting: [[ 1, 'asc' ]],
+ colReorder: {
+ fixedColumnsLeft: 1,
+ fixedColumnsRight: 1
+ }
+ } );
+
+ window.fc = new $.fn.dataTable.FixedColumns( table, {
+ leftColumns: 1,
+ rightColumns: 1
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/fixedheader.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/fixedheader.html
new file mode 100644
index 0000000..5c0eccc
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/fixedheader.html
@@ -0,0 +1,649 @@
+
+
+
+
+
+
+
+
+ ColReorder example - FixedHeader integration
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example FixedHeader integration
+
+
+ FixedHeader is a particularly useful plug-in for DataTables, allowing a table header to float at the
+ top of a scrolling window. ColReorder works well with FixedHeader, allowing you to reorder columns even
+ using the floating header, as shown in the example below.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ var table = $('#example').dataTable( {
+ dom: 'Rlfrtip'
+ } );
+
+ new $.fn.dataTable.fixedHeader( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/index.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/index.html
new file mode 100644
index 0000000..0d02c4d
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/index.html
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder examples - ColReorder examples
+
+
+
+
+
+ ColReorder example ColReorder examples
+
+
+ ColReorder adds the ability for the end user to click and drag column headers to reorder a table as
+ they see fit, to DataTables. Key features include:
+
+
+ - Very easy integration with DataTables
+ - Tight integration with all other DataTables plug-ins
+ - The ability to exclude the first (or more) column from being movable
+ - Predefine a column order
+ - Save staving integration with DataTables
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/jqueryui.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/jqueryui.html
new file mode 100644
index 0000000..7baaebf
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/jqueryui.html
@@ -0,0 +1,652 @@
+
+
+
+
+
+
+
+
+ ColReorder example - jQuery UI styling
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example jQuery UI styling
+
+
+ This example shows how the jQuery UI ThemeRoller option in DataTables can be used with
+ ColReorder.
+
+ The important thing to note here is that it is easier to use new
+ $.fn.dataTable.ColReorder()
to add ColReorder to the table rather than domDT
as the jQuery UI integration uses a
+ complex expression for domDT
.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ var table = $('#example').dataTable();
+
+ new $.fn.dataTable.ColReorder( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/new_init.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/new_init.html
new file mode 100644
index 0000000..07b22e7
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/new_init.html
@@ -0,0 +1,639 @@
+
+
+
+
+
+
+
+
+ ColReorder example - Initialisation using `new`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example Initialisation using `new`
+
+
+ As well as providing the option to be initialised through the R
option of domDT
, ColReorder can also be added to a
+ DataTable using direct initialisation - new $.fn.dataTable.ColReorder();
as shown in this
+ example.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ new $.fn.dataTable.ColReorder( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/predefined.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/predefined.html
new file mode 100644
index 0000000..831c123
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/predefined.html
@@ -0,0 +1,648 @@
+
+
+
+
+
+
+
+
+ ColReorder example - Predefined column ordering
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example Predefined column ordering
+
+
+ ColReorder provides the ability to specify a column ordering which is not that of the HTML (which
+ typically you will want) through the parameter colReorder.order
. This is an array of
+ integers with the column ordering you want.
+
+ For full information about the ColReorder options, please refer to the ColReorder options documentation.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ dom: 'Rlfrtip',
+ colReorder: {
+ order: [ 4, 3, 2, 1, 0, 5 ]
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/realtime.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/realtime.html
new file mode 100644
index 0000000..06f19cd
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/realtime.html
@@ -0,0 +1,649 @@
+
+
+
+
+
+
+
+
+ ColReorder example - Realtime updating
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example Realtime updating
+
+
+ While the ColReorder insertion point indicator can be styled, another option to show the end user
+ what the column will look like when the table has been reordered is to actually do the reordering while
+ the mouse is still dragging the column header. This is shown in this example and is controlled by the
+ realtime
parameter.
+
+ For full information about the ColReorder options, please refer to the ColReorder options documentation.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ dom: 'Rlfrtip',
+ colReorder: {
+ realtime: true
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/reset.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/reset.html
new file mode 100644
index 0000000..cabeb49
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/reset.html
@@ -0,0 +1,662 @@
+
+
+
+
+
+
+
+
+ ColReorder example - Reset ordering API
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example Reset ordering API
+
+
+ One useful control option to present the end user when using ColReorder is the ability to reset the
+ column ordering to that which was found in the HTML. This can be done by calling the reset
+ API function. While ColReorder does not provide a visual element for this itself (in order to provide
+ maximum flexibility) it is easy to hook to an event handler, as shown in this example.
+
+ For full information about the ColReorder API, please refer to the ColReorder API documentation.
+
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ dom: 'Rlfrtip',
+ colReorder: {
+ order: [ 4, 3, 2, 1, 0 ]
+ }
+ } );
+
+ $('#reset').click( function (e) {
+ e.preventDefault();
+
+ table.colReorder.reset();
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/scrolling.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/scrolling.html
new file mode 100644
index 0000000..0e3f2dc
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/scrolling.html
@@ -0,0 +1,645 @@
+
+
+
+
+
+
+
+
+ ColReorder example - Scrolling table
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example Scrolling table
+
+
+ This is a simple example to show ColReorder working with DataTables scrolling (scrollYDT
and scrollXDT
).
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ dom: 'Rlfrtip',
+ scrollY: '200px',
+ paging: false
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/server_side.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/server_side.html
new file mode 100644
index 0000000..cbbb074
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/server_side.html
@@ -0,0 +1,205 @@
+
+
+
+
+
+
+
+
+ ColReorder example - Server-side processing
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example Server-side processing
+
+
+ Server-side processing can be exceptionally useful in DataTables when dealing with massive data
+ sets, and ColReorder works with this as would be expected.
+
+ It is recommend that you use object based data with server-side processing and ColReorder, as this
+ provides easily understandable mapping between the the columns and the data relation on the server,
+ otherwise you need to work out array indexes on each call!
+
+
+
+
+
+ Name
+ Position
+ Office
+ Extn.
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Extn.
+ Start date
+ Salary
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ dom: 'Rlfrtip',
+ processing: true,
+ serverSide: true,
+ ajax: "../../../examples/server_side/scripts/objects.php",
+ columns: [
+ { data: "first_name" },
+ { data: "last_name" },
+ { data: "position" },
+ { data: "office" },
+ { data: "start_date" },
+ { data: "salary" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/simple.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/simple.html
new file mode 100644
index 0000000..950b1b7
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/simple.html
@@ -0,0 +1,644 @@
+
+
+
+
+
+
+
+
+ ColReorder example - Basic initialisation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example Basic initialisation
+
+
+ This example shows the basic use case of the ColReorder plug-in. With ColReorder enabled for a
+ table, the user has the ability to click and drag any table header cell, and drop it where they wish
+ the column to be inserted. The insert point is shown visually, and the column reordering is done as
+ soon as the mouse button is released.
+
+ ColReorder is added to a DataTable through the R
character that it adds to DataTables
+ feature plug-ins. This means that you simply add the character R
to the domDT
parameter for your table to add
+ ColReorder - as shown in the example below.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'Rlfrtip'
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/state_save.html b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/state_save.html
new file mode 100644
index 0000000..02d943d
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/examples/state_save.html
@@ -0,0 +1,643 @@
+
+
+
+
+
+
+
+
+ ColReorder example - State saving
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColReorder example State saving
+
+
+ A useful interaction pattern to use in DataTables is state saving, so when the end user reloads or
+ revisits a page its previous state is retained. ColReorder works seamlessly with state saving in
+ DataTables (stateSaveDT
), remembering and restoring the
+ column positions, as well as everything else such as sorting and filtering.
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Name
+ Position
+ Office
+ Age
+ Start date
+ Salary
+
+
+
+
+
+ Tiger Nixon
+ System Architect
+ Edinburgh
+ 61
+ 2011/04/25
+ $320,800
+
+
+ Garrett Winters
+ Accountant
+ Tokyo
+ 63
+ 2011/07/25
+ $170,750
+
+
+ Ashton Cox
+ Junior Technical Author
+ San Francisco
+ 66
+ 2009/01/12
+ $86,000
+
+
+ Cedric Kelly
+ Senior Javascript Developer
+ Edinburgh
+ 22
+ 2012/03/29
+ $433,060
+
+
+ Airi Satou
+ Accountant
+ Tokyo
+ 33
+ 2008/11/28
+ $162,700
+
+
+ Brielle Williamson
+ Integration Specialist
+ New York
+ 61
+ 2012/12/02
+ $372,000
+
+
+ Herrod Chandler
+ Sales Assistant
+ San Francisco
+ 59
+ 2012/08/06
+ $137,500
+
+
+ Rhona Davidson
+ Integration Specialist
+ Tokyo
+ 55
+ 2010/10/14
+ $327,900
+
+
+ Colleen Hurst
+ Javascript Developer
+ San Francisco
+ 39
+ 2009/09/15
+ $205,500
+
+
+ Sonya Frost
+ Software Engineer
+ Edinburgh
+ 23
+ 2008/12/13
+ $103,600
+
+
+ Jena Gaines
+ Office Manager
+ London
+ 30
+ 2008/12/19
+ $90,560
+
+
+ Quinn Flynn
+ Support Lead
+ Edinburgh
+ 22
+ 2013/03/03
+ $342,000
+
+
+ Charde Marshall
+ Regional Director
+ San Francisco
+ 36
+ 2008/10/16
+ $470,600
+
+
+ Haley Kennedy
+ Senior Marketing Designer
+ London
+ 43
+ 2012/12/18
+ $313,500
+
+
+ Tatyana Fitzpatrick
+ Regional Director
+ London
+ 19
+ 2010/03/17
+ $385,750
+
+
+ Michael Silva
+ Marketing Designer
+ London
+ 66
+ 2012/11/27
+ $198,500
+
+
+ Paul Byrd
+ Chief Financial Officer (CFO)
+ New York
+ 64
+ 2010/06/09
+ $725,000
+
+
+ Gloria Little
+ Systems Administrator
+ New York
+ 59
+ 2009/04/10
+ $237,500
+
+
+ Bradley Greer
+ Software Engineer
+ London
+ 41
+ 2012/10/13
+ $132,000
+
+
+ Dai Rios
+ Personnel Lead
+ Edinburgh
+ 35
+ 2012/09/26
+ $217,500
+
+
+ Jenette Caldwell
+ Development Lead
+ New York
+ 30
+ 2011/09/03
+ $345,000
+
+
+ Yuri Berry
+ Chief Marketing Officer (CMO)
+ New York
+ 40
+ 2009/06/25
+ $675,000
+
+
+ Caesar Vance
+ Pre-Sales Support
+ New York
+ 21
+ 2011/12/12
+ $106,450
+
+
+ Doris Wilder
+ Sales Assistant
+ Sidney
+ 23
+ 2010/09/20
+ $85,600
+
+
+ Angelica Ramos
+ Chief Executive Officer (CEO)
+ London
+ 47
+ 2009/10/09
+ $1,200,000
+
+
+ Gavin Joyce
+ Developer
+ Edinburgh
+ 42
+ 2010/12/22
+ $92,575
+
+
+ Jennifer Chang
+ Regional Director
+ Singapore
+ 28
+ 2010/11/14
+ $357,650
+
+
+ Brenden Wagner
+ Software Engineer
+ San Francisco
+ 28
+ 2011/06/07
+ $206,850
+
+
+ Fiona Green
+ Chief Operating Officer (COO)
+ San Francisco
+ 48
+ 2010/03/11
+ $850,000
+
+
+ Shou Itou
+ Regional Marketing
+ Tokyo
+ 20
+ 2011/08/14
+ $163,000
+
+
+ Michelle House
+ Integration Specialist
+ Sidney
+ 37
+ 2011/06/02
+ $95,400
+
+
+ Suki Burks
+ Developer
+ London
+ 53
+ 2009/10/22
+ $114,500
+
+
+ Prescott Bartlett
+ Technical Author
+ London
+ 27
+ 2011/05/07
+ $145,000
+
+
+ Gavin Cortez
+ Team Leader
+ San Francisco
+ 22
+ 2008/10/26
+ $235,500
+
+
+ Martena Mccray
+ Post-Sales support
+ Edinburgh
+ 46
+ 2011/03/09
+ $324,050
+
+
+ Unity Butler
+ Marketing Designer
+ San Francisco
+ 47
+ 2009/12/09
+ $85,675
+
+
+ Howard Hatfield
+ Office Manager
+ San Francisco
+ 51
+ 2008/12/16
+ $164,500
+
+
+ Hope Fuentes
+ Secretary
+ San Francisco
+ 41
+ 2010/02/12
+ $109,850
+
+
+ Vivian Harrell
+ Financial Controller
+ San Francisco
+ 62
+ 2009/02/14
+ $452,500
+
+
+ Timothy Mooney
+ Office Manager
+ London
+ 37
+ 2008/12/11
+ $136,200
+
+
+ Jackson Bradshaw
+ Director
+ New York
+ 65
+ 2008/09/26
+ $645,750
+
+
+ Olivia Liang
+ Support Engineer
+ Singapore
+ 64
+ 2011/02/03
+ $234,500
+
+
+ Bruno Nash
+ Software Engineer
+ London
+ 38
+ 2011/05/03
+ $163,500
+
+
+ Sakura Yamamoto
+ Support Engineer
+ Tokyo
+ 37
+ 2009/08/19
+ $139,575
+
+
+ Thor Walton
+ Developer
+ New York
+ 61
+ 2013/08/11
+ $98,540
+
+
+ Finn Camacho
+ Support Engineer
+ San Francisco
+ 47
+ 2009/07/07
+ $87,500
+
+
+ Serge Baldwin
+ Data Coordinator
+ Singapore
+ 64
+ 2012/04/09
+ $138,575
+
+
+ Zenaida Frank
+ Software Engineer
+ New York
+ 63
+ 2010/01/04
+ $125,250
+
+
+ Zorita Serrano
+ Software Engineer
+ San Francisco
+ 56
+ 2012/06/01
+ $115,000
+
+
+ Jennifer Acosta
+ Junior Javascript Developer
+ Edinburgh
+ 43
+ 2013/02/01
+ $75,650
+
+
+ Cara Stevens
+ Sales Assistant
+ New York
+ 46
+ 2011/12/06
+ $145,600
+
+
+ Hermione Butler
+ Regional Director
+ London
+ 47
+ 2011/03/21
+ $356,250
+
+
+ Lael Greer
+ Systems Administrator
+ London
+ 21
+ 2009/02/27
+ $103,500
+
+
+ Jonas Alexander
+ Developer
+ San Francisco
+ 30
+ 2010/07/14
+ $86,500
+
+
+ Shad Decker
+ Regional Director
+ Edinburgh
+ 51
+ 2008/11/13
+ $183,000
+
+
+ Michael Bruce
+ Javascript Developer
+ Singapore
+ 29
+ 2011/06/27
+ $183,000
+
+
+ Donna Snider
+ Customer Support
+ New York
+ 27
+ 2011/01/25
+ $112,000
+
+
+
+
+
+ - Javascript
+ - HTML
+ - CSS
+ - Ajax
+ - Server-side script
+
+
+
+
+ The Javascript shown below is used to initialise the table shown in this
+ example:
$(document).ready(function() {
+ $('#example').dataTable( {
+ dom: 'Rlfrtip',
+ stateSave: true
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this
+ example:
+
+
+
+
+
+ The HTML shown below is the raw HTML table element, before it has been enhanced by
+ DataTables:
+
+
+
+
+ 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 additional CSS used is shown
+ below:
+
+
+ The following CSS library files are loaded for use in this example to provide the styling of the
+ table:
+
+
+
+
+
+ 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 loaded.
+
+
+
+ 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 processing scripts can be written in any
+ language, using the protocol described in the
+ DataTables documentation.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/images/insert.png b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/images/insert.png
new file mode 100644
index 0000000..15d5522
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/images/insert.png
diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/js/dataTables.colReorder.js b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/js/dataTables.colReorder.js
new file mode 100644
index 0000000..4142766
--- /dev/null
+++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/ColReorder/js/dataTables.colReorder.js
@@ -0,0 +1,1371 @@
+/*! ColReorder 1.1.2
+ * ©2010-2014 SpryMedia Ltd - datatables.net/license
+ */
+
+/**
+ * @summary ColReorder
+ * @description Provide the ability to reorder columns in a DataTable
+ * @version 1.1.2
+ * @file dataTables.colReorder.js
+ * @author SpryMedia Ltd (www.sprymedia.co.uk)
+ * @contact www.sprymedia.co.uk/contact
+ * @copyright Copyright 2010-2014 SpryMedia Ltd.
+ *
+ * This source file is free software, available under the following license:
+ * MIT license - http://datatables.net/license/mit
+ *
+ * This source file is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
+ *
+ * For details please refer to: http://www.datatables.net
+ */
+
+(function(window, document, undefined) {
+
+
+/**
+ * Switch the key value pairing of an index array to be value key (i.e. the old value is now the
+ * key). For example consider [ 2, 0, 1 ] this would be returned as [ 1, 2, 0 ].
+ * @method fnInvertKeyValues
+ * @param array aIn Array to switch around
+ * @returns array
+ */
+function fnInvertKeyValues( aIn )
+{
+ var aRet=[];
+ for ( var i=0, iLen=aIn.length ; i
+ = iCols )
+ {
+ this.oApi._fnLog( oSettings, 1, "ColReorder 'from' index is out of bounds: "+iFrom );
+ return;
+ }
+
+ if ( iTo < 0 || iTo >= iCols )
+ {
+ this.oApi._fnLog( oSettings, 1, "ColReorder 'to' index is out of bounds: "+iTo );
+ return;
+ }
+
+ /*
+ * Calculate the new column array index, so we have a mapping between the old and new
+ */
+ var aiMapping = [];
+ for ( i=0, iLen=iCols ; i this.s.fixed-1 && i < iLen - this.s.fixedRight )
+ {
+ this._fnMouseListener( i, this.s.dt.aoColumns[i].nTh );
+ }
+
+ /* Mark the original column order for later reference */
+ this.s.dt.aoColumns[i]._ColReorder_iOrigCol = i;
+ }
+
+ /* State saving */
+ this.s.dt.oApi._fnCallbackReg( this.s.dt, 'aoStateSaveParams', function (oS, oData) {
+ that._fnStateSave.call( that, oData );
+ }, "ColReorder_State" );
+
+ /* An initial column order has been specified */
+ var aiOrder = null;
+ if ( this.s.init.aiOrder )
+ {
+ aiOrder = this.s.init.aiOrder.slice();
+ }
+
+ /* State loading, overrides the column order given */
+ if ( this.s.dt.oLoadedState && typeof this.s.dt.oLoadedState.ColReorder != 'undefined' &&
+ this.s.dt.oLoadedState.ColReorder.length == this.s.dt.aoColumns.length )
+ {
+ aiOrder = this.s.dt.oLoadedState.ColReorder;
+ }
+
+ /* If we have an order to apply - do so */
+ if ( aiOrder )
+ {
+ /* We might be called during or after the DataTables initialisation. If before, then we need
+ * to wait until the draw is done, if after, then do what we need to do right away
+ */
+ if ( !that.s.dt._bInitComplete )
+ {
+ var bDone = false;
+ this.s.dt.aoDrawCallback.push( {
+ "fn": function () {
+ if ( !that.s.dt._bInitComplete && !bDone )
+ {
+ bDone = true;
+ var resort = fnInvertKeyValues( aiOrder );
+ that._fnOrderColumns.call( that, resort );
+ }
+ },
+ "sName": "ColReorder_Pre"
+ } );
+ }
+ else
+ {
+ var resort = fnInvertKeyValues( aiOrder );
+ that._fnOrderColumns.call( that, resort );
+ }
+ }
+ else {
+ this._fnSetColumnIndexes();
+ }
+ },
+
+
+ /**
+ * Set the column order from an array
+ * @method _fnOrderColumns
+ * @param array a An array of integers which dictate the column order that should be applied
+ * @returns void
+ * @private
+ */
+ "_fnOrderColumns": function ( a )
+ {
+ if ( a.length != this.s.dt.aoColumns.length )
+ {
+ this.s.dt.oInstance.oApi._fnLog( this.s.dt, 1, "ColReorder - array reorder does not "+
+ "match known number of columns. Skipping." );
+ return;
+ }
+
+ for ( var i=0, iLen=a.length ; i
The list of columns that ColVis displays has two options for the order in which they are displayed.
+ The default mode of operation is to show the buttons in the same order as they appear in the HTML
+ table, but the second mode of operation is to show the buttons in alphabetical order. This is done by
+ specifying the order
option, set to alpha
. Alphabetical button ordering is
+ shown in this example.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'C<"clear">lfrtip',
+ colVis: {
+ order: 'alpha'
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+It can at times be useful to exclude columns from being in the 'show / hide' list (for example if
+ you have hidden information that the end user shouldn't be able to make visible. This can be done by
+ the exclude
ColVis configuration parameter when creating the DataTable. This is simply an
+ array of integers, indicating which columns should be excluded. This example shows the first column
+ being excluded.
For full information about the ColVis options, please refer to the ColVis options documentation.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'C<"clear">lfrtip',
+ colVis: {
+ exclude: [ 0 ]
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+It can be useful at times to show and hide multiple columns together - i.e. grouping them together.
+ Groupings are defined by the groups
array. Create a group button by naming it (using the
+ title
option) and specifying by index which columns belong to it (using the
+ columns
option).
Note also that this ability to create groups can be used in combination exclude
to
+ remove individual columns from the list (should you wish them to only be used in the groups), or set
+ exclude = [ 'all' ]
to show only the grouping buttons (i.e. individual column control
+ buttons will not be shown).
For full information about the ColVis options, please refer to the ColVis options documentation.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'C<"clear">lfrtip',
+ colVis: {
+ exclude: [],
+ groups: [
+ {
+ title: "Engine",
+ columns: [ 0, 3 ]
+ },
+ {
+ title: "Client",
+ columns: [ 1, 2 ]
+ }
+ ]
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+ColVis adds a button to the toolbars around DataTables which gives the end user of the table the + ability to dynamically change the visibility of the columns in the table:
+ +This example shows how the jQuery UI ThemeRoller option in DataTables can be used with ColVis.
+ +The important thing to note here is that it is easier to use new
+ $.fn.dataTable.colVis()
to add ColVis to the table rather than domDT
as the jQuery UI integration uses a
+ complex expression for domDT
.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ new $.fn.dataTable.colVis( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+The default activation (showing the columns list) for ColVis is for the user to click the button.
+ This can be altered to a mouseover
activation by making use of the activate
+ initialisation option and setting it to mouseover
. This is
+ shown in the example below.
For full information about the ColVis options, please refer to the ColVis options documentation.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'C<"clear">lfrtip',
+ colVis: {
+ activate: "mouseover"
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+As well as providing the option to be initialised through the C
option of domDT
, ColVis can also be added to a
+ DataTable using direct initialisation - new $.fn.dataTable.ColVis();
as shown in this
+ example. The ColVis control button it available through its button()
method, which can
+ then be used to attach to the document where you need.
For full information about the ColVis API, please refer to the ColVis API documentation.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+ var colvis = new $.fn.dataTable.ColVis( table );
+
+ $( colvis.button() ).insertAfter('div.info');
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+This demo of ColVis shows its ability to add "Restore", "Show all" and "Show none" buttons to the
+ list of column visibility options. This is done with the restore
, showAll
and
+ showNone
options which can be enabled individually if needed.
For full information about the ColVis options, please refer to the ColVis options documentation.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'C<"clear">lfrtip',
+ columnDefs: [
+ { visible: false, targets: 2 }
+ ],
+ colVis: {
+ restore: "Restore",
+ showAll: "Show all",
+ showNone: "Show none"
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+ColVis is a plug-in for DataTables which presents a list of all columns to a user and allows them to + select which ones they wish to be visible. Click the 'Show / hide columns' button to be presented with + a list of columns in the table, and click the buttons to show and hide them as you wish.
+ +ColVis is added to a DataTable by specifying the C
option for domDT
. The example below shows the ColVis
+ button added to the table with a clearing element after it.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'C<"clear">lfrtip'
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+You may wish to use your own text in the ColVis button - this is done by making use of the
+ buttonText
initialisation option, as shown in this example.
For full information about the ColVis options, please refer to the ColVis options documentation.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ "dom": 'C<"clear">lfrtip',
+ "colVis": {
+ "buttonText": "Change columns"
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+By default ColVis will use the information in the th
cell
+ for each column as the button name to use in ColVis, which might not always be what you want (for
+ example you might has HTML in the cell that you don't want in the button). The label
+ callback provides the ability to customise the label used for the button.
In this example the column index is prefixed to the column title.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ "dom": 'C<"clear">lfrtip',
+ "colVis": {
+ "label": function ( index, title, th ) {
+ return (index+1) +'. '+ title;
+ }
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+It can be useful to have DataTables initialise more than one table with a single call can for them + to each have individual ColVis controllers. All this requires is a suitable jQuery selector to be used, + and DataTables and ColVis will take care of the rest - as shown in this example.
+Name | +Position | +Office | +Age | +Salary | +
---|---|---|---|---|
Name | +Position | +Office | +Age | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +$320,800 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +$433,060 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +$103,600 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +$342,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +$217,500 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +$92,575 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +$324,050 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +$75,650 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +$183,000 | +
Name | +Position | +Office | +Age | +Salary | +
---|---|---|---|---|
Name | +Position | +Office | +Age | +Salary | +
Jena Gaines | +Office Manager | +London | +30 | +$90,560 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +$198,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +$132,000 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +$1,200,000 | +
Suki Burks | +Developer | +London | +53 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +$145,000 | +
Timothy Mooney | +Office Manager | +London | +37 | +$136,200 | +
Bruno Nash | +Software Engineer | +London | +38 | +$163,500 | +
Hermione Butler | +Regional Director | +London | +47 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +$103,500 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('table.display').DataTable( {
+ dom: 'C<"clear">lfrtip',
+ displayLength: 5
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+This example shows how the DataTables API can be used with ColVis to use a single ColVis control to
+ effect other tables. This is done by applying ColVis to the first table and then listening for the
+ column-visibilityDT
event and updating all other tables when
+ triggered.
This example makes use of the tables()DT
and table()DT
methods for working with multiple tables, and
+ also initialised ColVis using the new $.fn.dataTable.ColVis();
operator.
Name | +Position | +Office | +Age | +Salary | +
---|---|---|---|---|
Name | +Position | +Office | +Age | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +$320,800 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +$433,060 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +$103,600 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +$342,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +$217,500 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +$92,575 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +$324,050 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +$75,650 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +$183,000 | +
Name | +Position | +Office | +Age | +Salary | +
---|---|---|---|---|
Name | +Position | +Office | +Age | +Salary | +
Jena Gaines | +Office Manager | +London | +30 | +$90,560 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +$198,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +$132,000 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +$1,200,000 | +
Suki Burks | +Developer | +London | +53 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +$145,000 | +
Timothy Mooney | +Office Manager | +London | +37 | +$136,200 | +
Bruno Nash | +Software Engineer | +London | +38 | +$163,500 | +
Hermione Butler | +Regional Director | +London | +47 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +$103,500 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var tables = $('table.display').DataTable( {
+ displayLength: 5
+ } );
+
+ // When the column visibility changes on the firs table, also change it on
+ // the others
+ tables.table(0).on('column-visibility', function ( e, settings, colIdx, visibility ) {
+ tables.tables(':gt(0)').column( colIdx ).visible( visibility );
+ } );
+
+ // Create ColVis on the first table only
+ var colvis = new $.fn.dataTable.ColVis( tables.table(0) );
+ $( colvis.button() ).insertAfter('div.info');
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+When displaying a table which scrolls along the x-axis, it can sometimes be useful to the end user for the left most column to be fixed in place, if it shows + grouping, index or similar information. This is basically the same idea as 'freeze columns' in Excel. This can be achieved with the FixedColumns plug-in for + DataTables, as shown below.
+ +Note that FixedColumns is suitable only for use with the scrolling features in DataTables. If you want to achieve a similar + effect without scrolling enabled, please checkout FixedHeader, also for DataTables.
+ +FixedColumns is initialised using the constructor new $.fn.dataTable.FixedColumns();
- shown below.
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ scrollY: "300px",
+ scrollX: true,
+ scrollCollapse: true,
+ paging: false
+ } );
+ new $.fn.dataTable.FixedColumns( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
body { font-size: 140%; }
+
+ /* Ensure that the demo table scrolls */
+ th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ width: 800px;
+ margin: 0 auto;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+This example shows FixedColumns being configured with individual column filtering abilities. Note that the event handler for the filtering is applied to the
+ input
elements before FixedColumns is initialised, so when FixedColumns clones nodes it also copies the event.
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ // Setup - add a text input to each footer cell
+ $('#example tfoot th').each( function () {
+ var title = $('#example thead th').eq( $(this).index() ).text();
+ $(this).html( '<input type="text" placeholder="Search '+title+'" />' );
+ } );
+
+ // DataTable
+ var table = $('#example').DataTable( {
+ scrollY: "300px",
+ scrollX: true,
+ scrollCollapse: true,
+ paging: false
+ } );
+
+ // Apply the filter
+ table.columns().indexes().each( function (idx) {
+ $( 'input', table.column( idx ).footer() ).on( 'keyup change', function () {
+ table
+ .column( idx )
+ .search( this.value )
+ .draw();
+ } );
+ } );
+
+ new $.fn.dataTable.FixedColumns( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
/* Ensure that the demo table scrolls */
+ th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ width: 800px;
+ margin: 0 auto;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+FixedColumns operates with DataTables' built-in column visibility options (columns.visibleDT
and column().visible()DT
), which columns that are hidden not being shown in the fixed columns. This
+ integration also means that FixedColumns works well with ColVis, with columns that are dynamically shown and
+ hidden updated immediately in the fixed columns.
The example below shows ColVis and FixedColumns working together. Two columns have been fixed on the left hand side of the table to show FixedColumns ability to + work effortlessly with column visibility.
+First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ dom: "Cfrtip",
+ scrollY: "300px",
+ scrollX: true,
+ scrollCollapse: true,
+ paging: false
+ } );
+
+ new $.fn.dataTable.FixedColumns( table, {
+ leftColumns: 2
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
/* Ensure that the demo table scrolls */
+ th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ width: 800px;
+ margin: 0 auto;
+ }
+
+ div.ColVis {
+ float: left;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Because of the method FixedColumns uses to display the fixed columns, an important consideration is the alignment of the rows due to different heights in the
+ individual rows of the table. There are two different algorithms in FixedColumns which can be used, or you can switch off automatic row sizing all together. This
+ is controlled through the heightMatch
parameter. If can take the following values:
none
- no automatic row height matching is performed. CSS can be used in this case and is useful when speed is
+ of primary importance.semiauto
(default) - the height calculation will be performed once, and the result cached to be used again
+ (fnRecalculateHeight
can be used to force recalculation)auto
- height matching is performed on every draw (slowest but must accurate)This example shows row height matching switched off but there is a CSS statement of tr { height: 50px }
to force all rows to the same height.
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ scrollY: "300px",
+ scrollX: true,
+ scrollCollapse: true,
+ paging: false
+ } );
+
+ new $.fn.dataTable.FixedColumns( table, {
+ heightMatch: 'none'
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
/* Ensure that the demo table scrolls */
+ th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ width: 800px;
+ margin: 0 auto;
+ }
+
+ tr { height: 50px; }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+When making use of DataTables' x-axis scrolling feature (scrollXDT
), you may wish to fix the left or right most columns in place. This extension for DataTables
+ provides exactly this option (for non-scrolling tables, please use the FixedHeader extension, which can fix
+ headers, footers and columns). Key features include:
A typical interaction to want to perform with a fixed column, is an index column. A method for how this can be achieved with FixedColumns is shown in this + example, building on the index column example for DataTables. Also shown in this example is how the + fixed column can be styled with CSS to show it more prominently.
++ | First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|---|
+ | Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
+ | Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
+ | Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
+ | Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
+ | Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
+ | Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
+ | Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
+ | Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
+ | Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
+ | Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
+ | Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
+ | Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
+ | Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
+ | Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
+ | Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
+ | Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
+ | Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
+ | Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
+ | Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
+ | Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
+ | Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
+ | Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
+ | Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
+ | Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
+ | Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
+ | Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
+ | Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
+ | Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
+ | Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
+ | Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
+ | Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
+ | Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
+ | Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
+ | Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
+ | Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
+ | Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
+ | Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
+ | Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
+ | Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
+ | Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
+ | Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
+ | Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
+ | Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
+ | Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
+ | Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
+ | Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
+ | Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
+ | Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
+ | Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
+ | Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
+ | Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
+ | Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
+ | Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
+ | Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
+ | Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
+ | Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
+ | Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ scrollY: "300px",
+ scrollX: true,
+ scrollCollapse: true,
+ paging: false,
+ columnDefs: [ {
+ sortable: false,
+ "class": "index",
+ targets: 0
+ } ],
+ order: [[ 1, 'asc' ]]
+ } );
+
+ table.on( 'order.dt search.dt', function () {
+ table.column(0, {search:'applied', order:'applied'}).nodes().each( function (cell, i) {
+ cell.innerHTML = i+1;
+ } );
+ } ).draw();
+
+ new $.fn.dataTable.FixedColumns( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
/* Ensure that the demo table scrolls */
+ th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ width: 800px;
+ margin: 0 auto;
+ }
+
+ /* Styling for the index columns */
+ th.index,
+ td.index {
+ background-color: white !important;
+ border-top: 1px solid white !important;
+ border-bottom: none !important;
+ }
+ div.DTFC_LeftHeadWrapper table {
+ border-bottom: 1px solid white !important;
+ }
+ div.DTFC_LeftHeadWrapper th {
+ border-bottom: 1px solid white !important;
+ }
+ div.DTFC_LeftBodyWrapper {
+ border-right: 1px solid black;
+ }
+ div.DTFC_LeftFootWrapper th {
+ border-top: 1px solid white !important;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+FixedColumns allows columns to be fixed from both the left and right hand sides of the table. Fixing right hand-side columns is done by using the
+ rightColumns
initialisation parameter, which works just the same as leftColumns
does for the left side of the table. This example shows
+ both the left and right columns being fixed in place.
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ scrollY: "300px",
+ scrollX: true,
+ scrollCollapse: true,
+ paging: false
+ } );
+
+ new $.fn.dataTable.FixedColumns( table, {
+ leftColumns: 1,
+ rightColumns: 1
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
/* Ensure that the demo table scrolls */
+ th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ width: 800px;
+ margin: 0 auto;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+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
+ using the initialisation parameters leftColumns
and rightColumns
you can alter this to fix the columns on the right as well. This example
+ shows a single column fixed in place, in this case the right most column.
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ scrollY: "300px",
+ scrollX: true,
+ scrollCollapse: true,
+ paging: false
+ } );
+
+ new $.fn.dataTable.FixedColumns( table, {
+ leftColumns: 0,
+ rightColumns: 1
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
/* Ensure that the demo table scrolls */
+ th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ width: 800px;
+ margin: 0 auto;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+If you are using multiple rows in the table header, it can be useful to have a rowspanning cell on the column(s) you have fixed in place - equally at other + times it can be useful to not and make use of the two or more cells per column. FixedColumns builds on the complex header support in DataTables to make this + trivial to use in FixedColumns. Just initialise your FixedColumns instance as you normally would!
+Name | +HR Information | +Contact | +|||
---|---|---|---|---|---|
Position | +Salary | +Office | +Extn. | +||
Name | +Position | +Salary | +Office | +Extn. | +|
Tiger Nixon | +System Architect | +$320,800 | +Edinburgh | +5421 | +t.nixon@datatables.net | +
Garrett Winters | +Accountant | +$170,750 | +Tokyo | +8422 | +g.winters@datatables.net | +
Ashton Cox | +Junior Technical Author | +$86,000 | +San Francisco | +1562 | +a.cox@datatables.net | +
Cedric Kelly | +Senior Javascript Developer | +$433,060 | +Edinburgh | +6224 | +c.kelly@datatables.net | +
Airi Satou | +Accountant | +$162,700 | +Tokyo | +5407 | +a.satou@datatables.net | +
Brielle Williamson | +Integration Specialist | +$372,000 | +New York | +4804 | +b.williamson@datatables.net | +
Herrod Chandler | +Sales Assistant | +$137,500 | +San Francisco | +9608 | +h.chandler@datatables.net | +
Rhona Davidson | +Integration Specialist | +$327,900 | +Tokyo | +6200 | +r.davidson@datatables.net | +
Colleen Hurst | +Javascript Developer | +$205,500 | +San Francisco | +2360 | +c.hurst@datatables.net | +
Sonya Frost | +Software Engineer | +$103,600 | +Edinburgh | +1667 | +s.frost@datatables.net | +
Jena Gaines | +Office Manager | +$90,560 | +London | +3814 | +j.gaines@datatables.net | +
Quinn Flynn | +Support Lead | +$342,000 | +Edinburgh | +9497 | +q.flynn@datatables.net | +
Charde Marshall | +Regional Director | +$470,600 | +San Francisco | +6741 | +c.marshall@datatables.net | +
Haley Kennedy | +Senior Marketing Designer | +$313,500 | +London | +3597 | +h.kennedy@datatables.net | +
Tatyana Fitzpatrick | +Regional Director | +$385,750 | +London | +1965 | +t.fitzpatrick@datatables.net | +
Michael Silva | +Marketing Designer | +$198,500 | +London | +1581 | +m.silva@datatables.net | +
Paul Byrd | +Chief Financial Officer (CFO) | +$725,000 | +New York | +3059 | +p.byrd@datatables.net | +
Gloria Little | +Systems Administrator | +$237,500 | +New York | +1721 | +g.little@datatables.net | +
Bradley Greer | +Software Engineer | +$132,000 | +London | +2558 | +b.greer@datatables.net | +
Dai Rios | +Personnel Lead | +$217,500 | +Edinburgh | +2290 | +d.rios@datatables.net | +
Jenette Caldwell | +Development Lead | +$345,000 | +New York | +1937 | +j.caldwell@datatables.net | +
Yuri Berry | +Chief Marketing Officer (CMO) | +$675,000 | +New York | +6154 | +y.berry@datatables.net | +
Caesar Vance | +Pre-Sales Support | +$106,450 | +New York | +8330 | +c.vance@datatables.net | +
Doris Wilder | +Sales Assistant | +$85,600 | +Sidney | +3023 | +d.wilder@datatables.net | +
Angelica Ramos | +Chief Executive Officer (CEO) | +$1,200,000 | +London | +5797 | +a.ramos@datatables.net | +
Gavin Joyce | +Developer | +$92,575 | +Edinburgh | +8822 | +g.joyce@datatables.net | +
Jennifer Chang | +Regional Director | +$357,650 | +Singapore | +9239 | +j.chang@datatables.net | +
Brenden Wagner | +Software Engineer | +$206,850 | +San Francisco | +1314 | +b.wagner@datatables.net | +
Fiona Green | +Chief Operating Officer (COO) | +$850,000 | +San Francisco | +2947 | +f.green@datatables.net | +
Shou Itou | +Regional Marketing | +$163,000 | +Tokyo | +8899 | +s.itou@datatables.net | +
Michelle House | +Integration Specialist | +$95,400 | +Sidney | +2769 | +m.house@datatables.net | +
Suki Burks | +Developer | +$114,500 | +London | +6832 | +s.burks@datatables.net | +
Prescott Bartlett | +Technical Author | +$145,000 | +London | +3606 | +p.bartlett@datatables.net | +
Gavin Cortez | +Team Leader | +$235,500 | +San Francisco | +2860 | +g.cortez@datatables.net | +
Martena Mccray | +Post-Sales support | +$324,050 | +Edinburgh | +8240 | +m.mccray@datatables.net | +
Unity Butler | +Marketing Designer | +$85,675 | +San Francisco | +5384 | +u.butler@datatables.net | +
Howard Hatfield | +Office Manager | +$164,500 | +San Francisco | +7031 | +h.hatfield@datatables.net | +
Hope Fuentes | +Secretary | +$109,850 | +San Francisco | +6318 | +h.fuentes@datatables.net | +
Vivian Harrell | +Financial Controller | +$452,500 | +San Francisco | +9422 | +v.harrell@datatables.net | +
Timothy Mooney | +Office Manager | +$136,200 | +London | +7580 | +t.mooney@datatables.net | +
Jackson Bradshaw | +Director | +$645,750 | +New York | +1042 | +j.bradshaw@datatables.net | +
Olivia Liang | +Support Engineer | +$234,500 | +Singapore | +2120 | +o.liang@datatables.net | +
Bruno Nash | +Software Engineer | +$163,500 | +London | +6222 | +b.nash@datatables.net | +
Sakura Yamamoto | +Support Engineer | +$139,575 | +Tokyo | +9383 | +s.yamamoto@datatables.net | +
Thor Walton | +Developer | +$98,540 | +New York | +8327 | +t.walton@datatables.net | +
Finn Camacho | +Support Engineer | +$87,500 | +San Francisco | +2927 | +f.camacho@datatables.net | +
Serge Baldwin | +Data Coordinator | +$138,575 | +Singapore | +8352 | +s.baldwin@datatables.net | +
Zenaida Frank | +Software Engineer | +$125,250 | +New York | +7439 | +z.frank@datatables.net | +
Zorita Serrano | +Software Engineer | +$115,000 | +San Francisco | +4389 | +z.serrano@datatables.net | +
Jennifer Acosta | +Junior Javascript Developer | +$75,650 | +Edinburgh | +3431 | +j.acosta@datatables.net | +
Cara Stevens | +Sales Assistant | +$145,600 | +New York | +3990 | +c.stevens@datatables.net | +
Hermione Butler | +Regional Director | +$356,250 | +London | +1016 | +h.butler@datatables.net | +
Lael Greer | +Systems Administrator | +$103,500 | +London | +6733 | +l.greer@datatables.net | +
Jonas Alexander | +Developer | +$86,500 | +San Francisco | +8196 | +j.alexander@datatables.net | +
Shad Decker | +Regional Director | +$183,000 | +Edinburgh | +6373 | +s.decker@datatables.net | +
Michael Bruce | +Javascript Developer | +$183,000 | +Singapore | +5384 | +m.bruce@datatables.net | +
Donna Snider | +Customer Support | +$112,000 | +New York | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ scrollY: "300px",
+ scrollX: true,
+ scrollCollapse: true,
+ paging: false
+ } );
+ new $.fn.dataTable.FixedColumns( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
/* Ensure that the demo table scrolls */
+ th, td {
+ white-space: nowrap;
+ padding-left: 40px !important;
+ padding-right: 40px !important;
+ }
+ div.dataTables_wrapper {
+ width: 800px;
+ margin: 0 auto;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+This example shows how FixedColumns can be used with server-side processing in DataTables to cope with very large tables. No special considerations are + required, just initialise FixedColumns as you normally would!
+ +Note that the table width is constrained in this example to allow scrolling to occur as the server-side processing data set has a limited number of columns in + this demo!
+Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ scrollY: "300px",
+ scrollX: true,
+ scrollCollapse: true,
+ ajax: "../../../examples/server_side/scripts/server_processing.php",
+ serverSide: true
+ } );
+ new $.fn.dataTable.FixedColumns( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
/* Ensure that the demo table scrolls */
+ th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ width: 600px;
+ margin: 0 auto;
+ }
+
+ /* Lots of padding for the cells as SSP has limited data in the demo */
+ th,
+ td {
+ padding-left: 40px !important;
+ padding-right: 40px !important;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+When displaying a table which scrolls along the x-axis, it can sometimes be useful to the end user for the left most column to be fixed in place, if it shows + grouping, index or similar information. This is basically the same idea as 'freeze columns' in Excel. This can be achieved with the FixedColumns plug-in for + DataTables, as shown below.
+ +Note that FixedColumns is suitable only for use with the scrolling features in DataTables. If you want to achieve a similar + effect without scrolling enabled, please checkout FixedHeader, also for DataTables.
+ +FixedColumns is initialised using the constructor new $.fn.dataTable.FixedColumns();
- shown below.
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ scrollY: "300px",
+ scrollX: true,
+ scrollCollapse: true,
+ paging: false
+ } );
+ new $.fn.dataTable.FixedColumns( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
/* Ensure that the demo table scrolls */
+ th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ width: 800px;
+ margin: 0 auto;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+The columns that are fixed in place by FixedColumns take their width from the parent DataTable. As such, the width of the column can be controlled using the
+ columns.widthDT
+ option.
This example shows the first column being set to width: 200px
(note that this is not pixel perfect in a table, the browser will make some
+ adjustments!), a width that is reflected in the fixed column. Resize the browser window horizontally and you will be able to see that the fixed column retains its
+ width while the scrolling viewport and the table resize.
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').removeAttr('width').DataTable( {
+ scrollY: "300px",
+ scrollX: true,
+ scrollCollapse: true,
+ paging: false,
+ columnDefs: [
+ { width: 200, targets: 0 }
+ ]
+ } );
+ new $.fn.dataTable.FixedColumns( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
/* Ensure that the demo table scrolls */
+ th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ margin: 0 auto;
+ }
+
+ div.container {
+ width: 80%;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+The columns that are fixed in place by FixedColumns take their width from the parent DataTable. As such, the width of the column can be controlled using the
+ columns.widthDT
+ option.
This example shows the first column being set to width: 20%
(note that this is not pixel perfect in a table, the browser will make some
+ adjustments!), a width that is reflected in the fixed column. Resize the browser window horizontally and you will be able to see that the fixed column retains its
+ proportional width (again with a small margin dictated by the browser) in the resizing table.
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ scrollY: "300px",
+ scrollX: true,
+ scrollCollapse: true,
+ paging: false,
+ columnDefs: [
+ { width: '20%', targets: 0 }
+ ]
+ } );
+ new $.fn.dataTable.FixedColumns( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
/* Ensure that the demo table scrolls */
+ th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ margin: 0 auto;
+ }
+
+ div.container {
+ width: 80%;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+FixedColumns allows more than one column to be frozen into place using the leftColumns
parameter. The example below shows two columns fixed.
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ scrollY: "300px",
+ scrollX: true,
+ scrollCollapse: true,
+ paging: false
+ } );
+ new $.fn.dataTable.FixedColumns( table, {
+ leftColumns: 2
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
/* Ensure that the demo table scrolls */
+ th, td { white-space: nowrap; }
+ div.dataTables_wrapper {
+ width: 800px;
+ margin: 0 auto;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+FixedHeader provides the ability to fix in place the header, footer, left and right columns of the + table. These are controlled by the options:
+ +top
- default truebottom
- default falseleft
- default falseright
- default falseThis example shows the header and footer of the table fixed by enabling the bottom
+ option.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ new $.fn.dataTable.FixedHeader( table, {
+ bottom: true
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+At times it can be useful to ensure that column titles will remain always visible on a table, even
+ when a user scrolls down a table. The FixedHeader plug-in for DataTables will float the thead
element above the table at all times to help address this issue.
+ The column titles also remain click-able to perform sorting. Key features include:
When displaying large amounts of data in a table, it can often be useful for the end user to have
+ the column titles (the thead
element as a whole in fact)
+ always visible. This is particularly true if using DataTables with pagination disabled, or the display
+ length is set to a high value.
The FixedHeader extension for DataTables will ensure that your column titles will scroll with the + page, showing at the top of the table at all times. Try the demo shown below - you might want to try + resizing the window for full effect! Note also that the column titles remain clickable to perform + sorting on the table.
+ +FixedHeader is initialised using the constructor new $.fn.dataTable.FixedHeader();
-
+ shown below.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ new $.fn.dataTable.FixedHeader( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+FixedHeader provides the ability to fix in place the header, footer, left and right columns of the + table. These are controlled by the options:
+ +top
- default truebottom
- default falseleft
- default falseright
- default falseThis example shows top, left and right enabled with index columns on the left and right.
+ +Note that in such a situation as this, the FixedColumns extension might be more useful, + particularly if you want to use the scrolling options built into DataTables.
+The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ "order": [ 1, 'asc' ],
+ "ajax": "../../../examples/ajax/data/objects.txt",
+ "columns": [
+ { title: '', data: null, defaultContent: "" },
+ { title: 'Name', data: "name" },
+ { title: 'Position', data: "position" },
+ { title: 'Office', data: "office" },
+ { title: 'Extn.', data: "extn" },
+ { title: 'Start date', data: "start_date" },
+ { title: 'Salary', data: "salary" },
+ { title: '', data: null, defaultContent: "" }
+ ],
+ initComplete: function () {
+ new $.fn.dataTable.FixedHeader( table, {
+ left: true,
+ right: true
+ } );
+ }
+ } );
+
+ table.on( 'order.dt search.dt', function () {
+ table.column(0, {search:'applied', order:'applied'}).nodes().each( function (cell, i) {
+ cell.innerHTML = i+1;
+ } );
+
+ table.column(-1, {search:'applied', order:'applied'}).nodes().each( function (cell, i) {
+ cell.innerHTML = i+1;
+ } );
+ } ).draw();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
div.dataTables_wrapper {
+ width: 150%;
+ }
+
+ div.FixedHeader_Cloned.fixedLeft tbody td {
+ border-right: 1px solid black;
+ }
+
+ div.FixedHeader_Cloned.fixedRight tbody td {
+ border-left: 1px solid black;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+The following example shows two DataTables enhanced tables both with FixedHeader enabled on them. + This is done simply by initialising FixedHeader on each table. This example also shows the footer being + fixed in place for the two tables.
+Name | +Position | +Office | +Age | +Salary | +
---|---|---|---|---|
Name | +Position | +Office | +Age | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +$320,800 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +$433,060 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +$103,600 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +$342,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +$217,500 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +$92,575 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +$324,050 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +$75,650 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +$183,000 | +
Name | +Position | +Office | +Age | +Salary | +
---|---|---|---|---|
Name | +Position | +Office | +Age | +Salary | +
Jena Gaines | +Office Manager | +London | +30 | +$90,560 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +$198,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +$132,000 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +$1,200,000 | +
Suki Burks | +Developer | +London | +53 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +$145,000 | +
Timothy Mooney | +Office Manager | +London | +37 | +$136,200 | +
Bruno Nash | +Software Engineer | +London | +38 | +$163,500 | +
Hermione Butler | +Regional Director | +London | +47 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +$103,500 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var t1 = $('table.display').eq(0).DataTable();
+ new $.fn.dataTable.FixedHeader( t1, {
+ bottom: true
+ } );
+
+ var t2 = $('table.display').eq(1).DataTable();
+ new $.fn.dataTable.FixedHeader( t2, {
+ bottom: true
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+When you have two or more columns fixed on a table, there might be occasions when you which to have
+ one column floating on top of another. This example shows how you can do that with the initialisation
+ parameters zTop
, zBottom
, zLeft
and zRight
. In this
+ example the left column is set to float on top of the header. The difference is subtle, but can be
+ effective.
The default zIndexes are:
+ +zTop
: 104zBottom
: 103zLeft
: 102zRight
: 101This example shows the left column being floated on top of the header.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ new $.fn.dataTable.FixedHeader( table, {
+ left: true,
+ zLeft: 105
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
div.dataTables_wrapper {
+ width: 1500px;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+KeyTable provides the ability to listen for events such as focus
, blur
,
+ esc
(the escape key) and 'return' (the return key) can be assigned event handling
+ functions through KeyTable's the API. This gives you the ability to take an action on a cell.
The example shown below has a few cells (selected at random, but near the top) with blur and focus + events assigned to them. You can also see the navigation around the table using arrow keys.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
function eventMsg ( msg ) {
+ var n = document.getElementById('info');
+ n.innerHTML += msg+"<br>";
+ n.scrollTop = n.scrollHeight;
+}
+
+$(document).ready(function() {
+ var table = $('#example').DataTable();
+ var keys = new $.fn.dataTable.KeyTable( table );
+
+ /* Focus handler for all cells in last column */
+ keys.event.focus( 4, null, function( node, x, y ) {
+ eventMsg( "Cell "+x+","+y+" focused ('live' event - column)" );
+ } );
+
+ /* Focus handler for all cells in 8th row */
+ keys.event.focus( null, 7, function( node, x, y ) {
+ eventMsg( "Cell "+x+","+y+" focused ('live' event - row)" );
+ } );
+
+ /* Focus using coords. */
+ keys.event.focus( 1, 0, function( node ) {
+ keys.event.remove.focus( node );
+ eventMsg( "Cell 1,0 focus - this event has now been removed" );
+ } );
+
+ keys.event.focus( 1, 3, function() {
+ eventMsg( "Cell 1,3 focus" );
+ } );
+
+ /* focus with a node */
+ keys.event.focus( $('#example tbody tr:eq(2) td:eq(0)')[0], function() {
+ eventMsg( "Cell 0,2 focus" );
+ } );
+
+ /* Blur using a node */
+ keys.event.blur( $('#example tbody tr:eq(1) td:eq(2)')[0], function() {
+ eventMsg( "Cell 1,2 blur" );
+ } );
+
+ /* Blur using coords */
+ keys.event.blur( 2, 4, function() {
+ eventMsg( "Cell 2,4 blur" );
+ } );
+
+ /* Action */
+ keys.event.action( 2, 2, function( node ) {
+ eventMsg( "Cell 2,2 action" );
+ if ( node.style.fontWeight == "" || node.style.fontWeight == "normal" ) {
+ node.style.fontWeight = "bold";
+ }
+ else {
+ node.style.fontWeight = "normal";
+ }
+ } );
+
+ keys.event.action( 2, 5, function( node ) {
+ eventMsg( "Cell 2,5 action" );
+ if ( node.style.fontStyle == "" ) {
+ node.style.fontStyle = "italic";
+ }
+ else {
+ node.style.fontStyle = "";
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+As well as being usable with DataTables, KeyTable can also be used with a plain HTML table. Please + note that this ability is deprecated and will be removed in KeyTable 1.3.
+ +This example shows KeyTable being initialised without any parameter, which instructs it to search
+ for any table with the class KeyTable
which will be used.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').addClass('KeyTable');
+ new $.fn.dataTable.KeyTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+KeyTable provides enhanced accessibility and navigation options for DataTables enhanced tables, by + allowing Excel like cell navigation on any table. Events (focus, blur, action etc) can be assigned to + individual cells, columns, rows or all cells to allow advanced interaction options.. Key features + include:
+ +KeyTable supports DataTables' scrolling options (scrollXDT
and scrollYDT
) without required any additional
+ configuration. As the navigation keys are used to alter the focus of the KeyTable, the DataTables
+ scrolling position is altered to show the focused cell.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ scrollY: 300,
+ paging: false
+ } );
+
+ new $.fn.dataTable.KeyTable( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+KeyTable allows you to use keyboard navigation on a DataTables enhanced table, like an Excel + spreadsheet. The focused cell is shown through the CSS class ('focus') which in the case below is + simply a blue border. Use your keyboard's arrow keys and click the cells in the table to navigate.
+ +This example simply shows key table being initialised on a DataTable, but events can be listened for through the KeyTable API which provide interaction + options.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ new $.fn.dataTable.KeyTable( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+Responsive has two built in methods for displaying the controlling element of the child rows; inline
which is the default option and shows the
+ control in the first column, and column
which set a control column as the control. The control column is shown only when there is some other
+ column hidden, and is dedicated only to the show / hide control for the rows.
This example shows the responsive.details.typeR
option set to column
to activate the control column. Note that by
+ default the first column is used as the control, so additionally in the initialisation the orderDT
and columns.orderableDT
options are used to disable sorting on this column.
+ | First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +
---|---|---|---|---|---|---|---|---|
+ | First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +
+ | Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +
+ | Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +
+ | Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +
+ | Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +
+ | Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +
+ | Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +
+ | Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +
+ | Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +
+ | Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +
+ | Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +
+ | Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +
+ | Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +
+ | Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +
+ | Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +
+ | Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +
+ | Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +
+ | Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +
+ | Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +
+ | Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +
+ | Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +
+ | Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +
+ | Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +
+ | Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +
+ | Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +
+ | Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +
+ | Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +
+ | Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +
+ | Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +
+ | Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +
+ | Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +
+ | Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +
+ | Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +
+ | Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +
+ | Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +
+ | Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +
+ | Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +
+ | Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +
+ | Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +
+ | Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +
+ | Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +
+ | Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +
+ | Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +
+ | Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +
+ | Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +
+ | Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +
+ | Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +
+ | Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +
+ | Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +
+ | Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +
+ | Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +
+ | Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +
+ | Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +
+ | Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +
+ | Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +
+ | Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +
+ | Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +
+ | Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ responsive: {
+ details: {
+ type: 'column'
+ }
+ },
+ columnDefs: [ {
+ className: 'control',
+ orderable: false,
+ targets: 0
+ } ],
+ order: [ 1, 'asc' ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+The child row's for a collapsed table in Responsive, by default, show a ul/li
list of the data from the hidden
+ columns. The responsive.details.rendererR
option provide the ability to create your own custom renderer. It is given
+ two parameters: the DataTables API instance for the table and the row index to use.
This example shows the cells()DT
method
+ being used to select the hidden columns and constructing a table of the data. You could refine the selector to select only certain columns, or show all columns,
+ etc.
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ responsive: {
+ details: {
+ renderer: function ( api, rowIdx ) {
+ // Select hidden columns for the given row
+ var data = api.cells( rowIdx, ':hidden' ).eq(0).map( function ( cell ) {
+ var header = $( api.column( cell.column ).header() );
+
+ return '<tr>'+
+ '<td>'+
+ header.text()+':'+
+ '</td> '+
+ '<td>'+
+ api.cell( cell ).data()+
+ '</td>'+
+ '</tr>';
+ } ).toArray().join('');
+
+ return data ?
+ $('<table/>').append( data ) :
+ false;
+ }
+ }
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+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
+ row. This can be disabled using the responsive.detailsR
option and setting it to false
, as shown in the example below. In this
+ case the hidden data is not directly accessible to the end user.
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ responsive: {
+ details: false
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+When a column is removed from display by Responsive, the data is still available in the table and can be displayed in a DataTables child row (see
+ row().child()DT
). By default
+ 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
+ columns.
Responsive has a number of options for display of the child rows:
+ +responsive.detailsR
responsive.details.typeR
responsive.details.rendererR
This section shows examples of these options being used.
+When using the column
child row control type, Responsive has the ability to use any column or element as the show / hide control for the row
+ details. This is provided through the responsive.details.targetR
option, which can be either a column index, or a jQuery selector.
This example shows the last column in the table being used as the control column.
+First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | ++ |
---|---|---|---|---|---|---|---|---|
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | ++ |
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | ++ |
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | ++ |
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | ++ |
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | ++ |
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | ++ |
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | ++ |
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | ++ |
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | ++ |
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | ++ |
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | ++ |
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | ++ |
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | ++ |
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | ++ |
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | ++ |
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | ++ |
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | ++ |
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | ++ |
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | ++ |
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | ++ |
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | ++ |
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | ++ |
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | ++ |
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | ++ |
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | ++ |
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | ++ |
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | ++ |
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | ++ |
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | ++ |
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | ++ |
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | ++ |
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | ++ |
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | ++ |
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | ++ |
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | ++ |
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | ++ |
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | ++ |
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | ++ |
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | ++ |
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | ++ |
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | ++ |
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | ++ |
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | ++ |
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | ++ |
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | ++ |
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | ++ |
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | ++ |
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | ++ |
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | ++ |
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | ++ |
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | ++ |
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | ++ |
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | ++ |
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | ++ |
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | ++ |
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | ++ |
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | ++ |
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | ++ |
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ responsive: {
+ details: {
+ type: 'column',
+ target: -1
+ }
+ },
+ columnDefs: [ {
+ className: 'control',
+ orderable: false,
+ targets: -1
+ } ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+When using the column
details type in Responsive the responsive.details.targetR
option provides the ability to control what element is used to show / hide
+ the child rows when the table is collapsed.
This example uses the tr
selector to have the whole row act as the control.
+ | First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +
---|---|---|---|---|---|---|---|---|
+ | First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +
+ | Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +
+ | Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +
+ | Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +
+ | Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +
+ | Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +
+ | Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +
+ | Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +
+ | Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +
+ | Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +
+ | Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +
+ | Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +
+ | Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +
+ | Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +
+ | Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +
+ | Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +
+ | Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +
+ | Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +
+ | Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +
+ | Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +
+ | Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +
+ | Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +
+ | Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +
+ | Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +
+ | Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +
+ | Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +
+ | Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +
+ | Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +
+ | Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +
+ | Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +
+ | Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +
+ | Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +
+ | Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +
+ | Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +
+ | Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +
+ | Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +
+ | Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +
+ | Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +
+ | Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +
+ | Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +
+ | Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +
+ | Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +
+ | Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +
+ | Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +
+ | Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +
+ | Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +
+ | Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +
+ | Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +
+ | Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +
+ | Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +
+ | Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +
+ | Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +
+ | Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +
+ | Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +
+ | Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +
+ | Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +
+ | Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +
+ | Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ responsive: {
+ details: {
+ type: 'column',
+ target: 'tr'
+ }
+ },
+ columnDefs: [ {
+ className: 'control',
+ orderable: false,
+ targets: 0
+ } ],
+ order: [ 1, 'asc' ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Responsive will automatically detect which columns have breakpoint class names assigned to them for visibility control. If no breakpoint class is found for a + column, Responsive will determine automatically if the column should be shown or not at any particular viewport width. This is done by removing columns which cause + the table to overflow the viewport, with the columns being removed from the right.
+ +This example shows that simple case. On a desktop browser resize the window horizontally to see columns added and removed on-the-fly. On a tablet or mobile + browser, change the screen's orientation.
+First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+You can tell Responsive what columns to want to be visible on different devices through the use of class names on the columns. The breakpoints are horizontal + screen resolutions and the defaults are set for common devices:
+ +desktop
x >= 1024pxtablet-l
(landscape) 768 <= x < 1024tablet-p
(portrait) 480 <= x < 768mobile-l
(landscape) 320 <= x < 480mobile-p
(portrait) x < 320You may leave the -[lp]
option from the end if you wish to just target all tablet or mobile devices. Additionally to may add min-
,
+ max-
or not-
as a prefix to the class name to perform logic operations. For example not-mobile
would cause a column to
+ appear as visible on desktop and tablet devices, while min-tablet-l
would require at least a horizontal width of 768 for the browser window to be
+ shown, and be shown at all sizes larger.
Additionally, there are three special class names:
+ +all
- Always displaynone
- Don't display as a column, but show in the child rownever
- Never displaycontrol
- Used for the column
responsive.details.typeR
option.Please refer to the Responsive manual for further details of these options.
+ +This example shows the salary
column visible on a desktop only - office
and age
require a tablet, while the
+ position
column requires a phone in landscape or larger. The name
column is always visible and the start date
is never
+ visible.
This can be useful if you wish to change the format of the data shown on different devices, for example using a combination of mobile
and
+ not-mobile
on two different columns would allow information to be formatted suitable for each device type.
Name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +
---|---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ "ajax": "../../../../examples/ajax/data/objects.txt",
+ "columns": [
+ { "data": "name" },
+ { "data": "position" },
+ { "data": "office" },
+ { "data": "extn" },
+ { "data": "start_date" },
+ { "data": "salary" },
+ { "data": "extn" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+This example shows Responsive being used with the DataTables FixedHeader extension. FixedHeader will + lock a table's header to the top of the table, ensuring that the user always knows what each column relates to.
+First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ responsive: true,
+ paging: false
+ } );
+
+ new $.fn.dataTable.FixedHeader( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
div.container { max-width: 1200px }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Responsive has two basic modes of operation for controlling the visibility of columns at different display sizes. These two modes can be using either separately + or together:
+ +This section explores these two options.
+This example exactly matches the functionality of the class control example but in this case the classes are assigned using the
+ columns.classNameDT
option.
Name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +
---|---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ "ajax": "../../../../examples/ajax/data/objects.txt",
+ "columns": [
+ { "data": "name", className: "all" },
+ { "data": "position", className: "min-phone-l" },
+ { "data": "office", className: "min-tablet" },
+ { "data": "extn", className: "min-tablet" },
+ { "data": "start_date", className: "never" },
+ { "data": "salary", className: "desktop" },
+ { "data": "extn", className: "none" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+This example shows the Responsive extension working with Ajax sourced data in the DataTable. Note that no special
+ initialisation is required. Responsive is enabled by adding the responsive
class to the table
element.
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ "ajax": "../../../../examples/ajax/data/objects.txt",
+ "columns": [
+ { "data": "name" },
+ { "data": "position" },
+ { "data": "office" },
+ { "data": "extn" },
+ { "data": "start_date" },
+ { "data": "salary" }
+ ]
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
div.container { max-width: 1200px }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+The easiest way to initialise the Responsive extension for DataTables is simply to add the class responsive
to the
+ table's class name. When the DataTable is initialised the Responsive extension will automatically enable itself on these tables.
The may also use the class dt-responsive
to perform the same action, since responsive
may be used in your stylesheet, or may have some
+ other meaning in a CSS framework being used (for example Bootstrap).
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+It can often be useful to be able to set a default value for DataTables' initialisation options, providing a common starting point for initialisation when
+ working with multiple tables over many pages or even just on a single page. DataTables provides that ability through the $.fn.dataTable.defaults
+ object which can have any of the initialisation options set.
Extending that ability, Responsive can also be set to initialise by default, as shown in this example thorugh the
+ $.fn.dataTable.defaults.responsive
property. Extending that, all of the Responsive
+ options can also be set using this configuration option (i.e. use responsive
as an object).
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$.extend( $.fn.dataTable.defaults, {
+ responsive: true
+} );
+
+$(document).ready(function() {
+ $('#example').DataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Responsive can be run on a DataTable in a number of different ways:
+ +responsive
or dt-responsive
to the table
responsiveR
option in the DataTables initialisation$.fn.dataTable.Responsive
constructor.This set of examples demonstrates these initialisation options.
+Responsive will automatically detect new DataTable instances being created on a page and initialise itself if it find the responsiveR
option or responsive
class name on the table, as shown in the other
+ examples.
The third way of initialising Responsive is manually creating a new instance using the $.fn.dataTable.Responsive
class, as shown in this example
+ (the other two methods are provided using this constructor in a initDT
event handler!).
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+
+ new $.fn.dataTable.Responsive( table );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
div.container { max-width: 1200px }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+The Responsive extension for DataTables can be applied to a DataTable in one of two ways; with a specific class name on the table, or using the DataTables
+ initialisation options. This method shows the latter, with the responsiveR
option being set to the boolean value true
.
The responsiveR
option can be given as a boolean value, or as an object with configuration options. If as a
+ boolean, as in this case, the default options are used.
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ responsive: true
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
div.container { max-width: 1200px }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+This example shows DataTables and the Responsive extension being used with the Bootstrap framework providing the styling. + The DataTables / Bootstrap integration files prove seamless integration for DataTables to be used in a + Bootstrap page.
+ +Note that the dt-responsive
class is used to indicate to the extension that it should be enabled on this page, as responsive
has special meaning in Bootstrap. The responsiveR
option could also be used if required.
First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
body { font-size: 140% }
+
+ table.dataTable th,
+ table.dataTable td {
+ white-space: nowrap;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+This example shows DataTables and the Responsive extension being used with the Foundation framework providing the + styling. The DataTables / Foundation integration files prove seamless integration for DataTables to be + used in a Foundation page.
+First name | +Last name | +Position | +Office | +Age | +Start date | +Salary | +Extn. | +|
---|---|---|---|---|---|---|---|---|
Tiger | +Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +5421 | +t.nixon@datatables.net | +
Garrett | +Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +8422 | +g.winters@datatables.net | +
Ashton | +Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +1562 | +a.cox@datatables.net | +
Cedric | +Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +6224 | +c.kelly@datatables.net | +
Airi | +Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +5407 | +a.satou@datatables.net | +
Brielle | +Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +4804 | +b.williamson@datatables.net | +
Herrod | +Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +9608 | +h.chandler@datatables.net | +
Rhona | +Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +6200 | +r.davidson@datatables.net | +
Colleen | +Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +2360 | +c.hurst@datatables.net | +
Sonya | +Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +1667 | +s.frost@datatables.net | +
Jena | +Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +3814 | +j.gaines@datatables.net | +
Quinn | +Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +9497 | +q.flynn@datatables.net | +
Charde | +Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +6741 | +c.marshall@datatables.net | +
Haley | +Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +3597 | +h.kennedy@datatables.net | +
Tatyana | +Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +1965 | +t.fitzpatrick@datatables.net | +
Michael | +Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +1581 | +m.silva@datatables.net | +
Paul | +Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +3059 | +p.byrd@datatables.net | +
Gloria | +Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +1721 | +g.little@datatables.net | +
Bradley | +Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +2558 | +b.greer@datatables.net | +
Dai | +Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +2290 | +d.rios@datatables.net | +
Jenette | +Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +1937 | +j.caldwell@datatables.net | +
Yuri | +Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +6154 | +y.berry@datatables.net | +
Caesar | +Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +8330 | +c.vance@datatables.net | +
Doris | +Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +3023 | +d.wilder@datatables.net | +
Angelica | +Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +5797 | +a.ramos@datatables.net | +
Gavin | +Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +8822 | +g.joyce@datatables.net | +
Jennifer | +Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +9239 | +j.chang@datatables.net | +
Brenden | +Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +1314 | +b.wagner@datatables.net | +
Fiona | +Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +2947 | +f.green@datatables.net | +
Shou | +Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +8899 | +s.itou@datatables.net | +
Michelle | +House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +2769 | +m.house@datatables.net | +
Suki | +Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +6832 | +s.burks@datatables.net | +
Prescott | +Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +3606 | +p.bartlett@datatables.net | +
Gavin | +Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +2860 | +g.cortez@datatables.net | +
Martena | +Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +8240 | +m.mccray@datatables.net | +
Unity | +Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +5384 | +u.butler@datatables.net | +
Howard | +Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +7031 | +h.hatfield@datatables.net | +
Hope | +Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +6318 | +h.fuentes@datatables.net | +
Vivian | +Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +9422 | +v.harrell@datatables.net | +
Timothy | +Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +7580 | +t.mooney@datatables.net | +
Jackson | +Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +1042 | +j.bradshaw@datatables.net | +
Olivia | +Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +2120 | +o.liang@datatables.net | +
Bruno | +Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +6222 | +b.nash@datatables.net | +
Sakura | +Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +9383 | +s.yamamoto@datatables.net | +
Thor | +Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +8327 | +t.walton@datatables.net | +
Finn | +Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +2927 | +f.camacho@datatables.net | +
Serge | +Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +8352 | +s.baldwin@datatables.net | +
Zenaida | +Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +7439 | +z.frank@datatables.net | +
Zorita | +Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +4389 | +z.serrano@datatables.net | +
Jennifer | +Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +3431 | +j.acosta@datatables.net | +
Cara | +Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +3990 | +c.stevens@datatables.net | +
Hermione | +Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +1016 | +h.butler@datatables.net | +
Lael | +Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +6733 | +l.greer@datatables.net | +
Jonas | +Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +8196 | +j.alexander@datatables.net | +
Shad | +Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +6373 | +s.decker@datatables.net | +
Michael | +Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +5384 | +m.bruce@datatables.net | +
Donna | +Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +4226 | +d.snider@datatables.net | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ $('#example').DataTable();
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:
+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 + additional CSS used is shown below:
table.dataTable th,
+ table.dataTable td {
+ white-space: nowrap;
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the table:
+ + +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 + loaded.
+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 + processing scripts can be written in any language, using the protocol described in the DataTables + documentation.
+Responsive requires very little styling information of its own, with styling needed only for the child row display when the table has been collapsed. As such, + integrating Responsive with your application should be as simple as including the Javascript and base stylesheet! This section shows Responsive being styling using + external CSS frameworks.
+This example shows a trivial use of the API methods that Scroller adds to the DataTables API to
+ scroll to a row once the table's data has been loaded. In this case
+ scroller().scrollToRow()
is used to jump to row 1000.
ID | +First name | +Last name | +ZIP / Post code | +Country | +
---|
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ ajax: "data/2500.txt",
+ deferRender: true,
+ dom: "frtiS",
+ scrollY: 200,
+ scrollCollapse: true,
+ initComplete: function () {
+ var api = this.api();
+ api.scroller().scrollToRow( 1000 );
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+Scroller is a virtual rendering plug-in for DataTables which allows large datasets to be drawn on + screen every quickly. What the virtual rendering means is that only the visible portion of the table + (and a bit to either side to make the scrolling smooth) is drawn, while the scrolling container gives + the visual impression that the whole table is visible. This is done by making use of the pagination + abilities of DataTables and moving the table around in the scrolling container DataTables adds to the + page. The scrolling container is forced to the height it would be for the full table display using an + extra element.
+ +Scroller is initialised by simply including the letter S
in the domDT
for the table you want to have this
+ feature enabled on. Note that the S
must come after the t
parameter in
+ domDT
.
Key features include:
+ +This example is completely artificial in that the data generated is created on the client-side by + just looping around a Javascript array and then passing that to DataTables. However, it does show quite + nicely that DataTables and Scroller can cope with large amounts of data on the client-side quite + nicely. Typically data such as this would be Ajax sourced and server-side processing should be + considered.
+ +Please be aware that the performance of this page will depend on your browser as the array of data + is generated - for example IE6 will crawl!
+ID | +First name | +Last name | +ZIP / Post code | +Country | +
---|
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var data = [];
+ for ( var i=0 ; i<50000 ; i++ ) {
+ data.push( [ i, i, i, i, i ] );
+ }
+
+ var oTable = $('#example').dataTable( {
+ data: data,
+ deferRender: true,
+ dom: "frtiS",
+ scrollY: 200,
+ scrollCollapse: true
+ } );
+ } );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+DataTables' server-side processing mode is a feature that naturally fits in with Scroller perfectly. + Server-side processing can be used to show large data sets, with the server being used to do the data + processing, and Scroller optimising the display of the data in a scrolling viewport.
+ +When using server-side processing, Scroller will wait a small amount of time to allow the scrolling + to finish before requesting more data from the server (200mS by default). This prevents you from DoSing + your own server!
+ +This example shows Scroller using server-side processing mode and 5 million rows.
+ Important This particular example uses ajaxDT
as a function to 'fake' the data to
+ show Scroller's ability to show large data sets. It does not have a real database behind it! You would
+ normally not use ajaxDT
as a function to generate data, but
+ rather as a url for where to fetch the real data!
In this example we also enable the loadingIndicator
option of Scroller to show the end
+ user what is happening when they scroll passed the currently loaded data.
ID | +First name | +Last name | +ZIP / Post code | +Country | +
---|
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ serverSide: true,
+ ordering: false,
+ searching: false,
+ ajax: function ( data, callback, settings ) {
+ var out = [];
+
+ for ( var i=data.start, ien=data.start+data.length ; i<ien ; i++ ) {
+ out.push( [ i+'-1', i+'-2', i+'-3', i+'-4', i+'-5' ] );
+ }
+
+ setTimeout( function () {
+ callback( {
+ draw: data.draw,
+ data: out,
+ recordsTotal: 5000000,
+ recordsFiltered: 5000000
+ } );
+ }, 50 );
+ },
+ dom: "rtiS",
+ scrollY: 200,
+ scroller: {
+ loadingIndicator: true
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+Scroller is a plug-in for DataTables which enhances DataTables' built-in scrolling features to allow + large amounts of data to be rendered on page very quickly. This is done by Scroller through the use of + a virtual rendering technique that will render only the part of the table that is actually required for + the current view.
+ +Note that Scroller assumes that all rows are of the same height (in order to preform the required
+ calculations. You can use td { white-space: nowrap; }
in your CSS to ensure that text in
+ rows does not wrap.
This example shows how Scroller for DataTables can be initialised by simply including the character
+ S
in sDom (note that the S
must come after the t
in sDom).
+ Deferred rendering an and Ajax data source are also used in this example.
ID | +First name | +Last name | +ZIP / Post code | +Country | +
---|
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ ajax: "data/2500.txt",
+ deferRender: true,
+ dom: "frtiS",
+ scrollY: 200,
+ scrollCollapse: true
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+Scroller will automatically integrate with DataTables in order to save the scrolling position of the
+ table, if state saving is enabled in the DataTable (stateSaveDT
). This example shows that in
+ practice - to demonstrate, scroll the table and then reload the page.
ID | +First name | +Last name | +ZIP / Post code | +Country | +
---|
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ ajax: "data/2500.txt",
+ deferRender: true,
+ dom: "frtiS",
+ scrollY: 200,
+ scrollCollapse: true,
+ stateSave: true
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+This TableTools example shows DataTables using its ability to Ajax load object based data and operate in exactly the same + manner as when the data is read directly from the document.
+Name | +Position | +Office | +Extn. | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Extn. | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'T<"clear">lfrtip',
+ "ajax": "../../../../examples/ajax/data/objects.txt",
+ "columns": [
+ { "data": "name" },
+ { "data": "position" },
+ { "data": "office" },
+ { "data": "extn" },
+ { "data": "start_date" },
+ { "data": "salary" }
+ ],
+ deferRender: true
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+TableTools makes it very simple to arrange the buttons in the toolbar as you see fit. Using the
+ aButtons
parameter you can use any of the predefined buttons or customised buttons. The example below
+ shows how TableTools can be initialised to provide only the 'copy-to-clipboard' and 'print view'
+ options (i.e. no save to local file option is available).
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'T<"clear">lfrtip',
+ tableTools: {
+ "aButtons": [ "copy", "print" ]
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+Twitter Bootstrap is a very powerful design + framework for allowing you to very quickly create applications with a unified look and feel. DataTables integrates well with Bootstrap, and so + does TableTools.
+ +This example shows the default Bootstrap theme being used with a Bootstrap styled DataTable. The
+ new
form of initialising TableTools is used here, as the
+ Bootstrap integration uses a complex domDT
option (it is possible
+ to provide a custom domDT
option if you want to, this is just
+ for simplicity!).
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+ var tt = new $.fn.dataTable.TableTools( table );
+
+ $( tt.fnContainer() ).insertBefore('div.dataTables_wrapper');
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
body { font-size: 140%; }
+ div.DTTT { margin-bottom: 0.5em; float: right; }
+ div.dataTables_wrapper { clear: both; }
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+You may wish to set your own text for the buttons in the TableTools toolbar, rather than relying on
+ the default built-in text. This is done by overriding the sButtonText
parameter of
+ whatever button you wish to alter. The way TableTools allows you to alter a predefined button is by
+ 'extending' it (using the sExtends
parameter) and then setting the overriding
+ parameter.
A full list of the parameters which can be used is available on the DataTables.net + web-site. This example shows how to set the button text as required.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ "dom": 'T<"clear">lfrtip',
+ "tableTools": {
+ "aButtons": [
+ {
+ "sExtends": "copy",
+ "sButtonText": "Copy to clipboard"
+ },
+ {
+ "sExtends": "csv",
+ "sButtonText": "Save to CSV"
+ },
+ {
+ "sExtends": "xls",
+ "oSelectorOpts": {
+ page: 'current'
+ }
+ }
+ ]
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+TableTools provides the ability to group buttons into a hidden drop down list, which is activated by
+ clicking on a top-level button. This is achieved by extending the 'collection' predefined button type
+ and setting it's aButtons
parameter with the same options as the top level buttons (note
+ that you cannot currently use a collection within a collection).
The example below shows the file save buttons grouped into a collection, while the copy and print + buttons are left on the top level.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ "dom": 'T<"clear">lfrtip',
+ "tableTools": {
+ "aButtons": [
+ "copy",
+ "print",
+ {
+ "sExtends": "collection",
+ "sButtonText": "Save",
+ "aButtons": [ "csv", "xls", "pdf" ]
+ }
+ ]
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+TableTools provides the ability to override the default initialisation parameters that are used when + creating a new instance. This this particularly useful if you have multiple tables which you want to + have the same TableTools behaviour - rather than declaring the structure multiple times, you can just + set the defaults once. This example shows how to alter the default buttons.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$.fn.dataTable.TableTools.defaults.aButtons = [ "copy", "csv", "xls" ];
+
+$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'T<"clear">lfrtip'
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+TableTools is a plug-in for the DataTables HTML table enhancer, which adds a highly customisable + button toolbar to a DataTable. Key features include:
+ +This example shows the TableTools buttons being styled by jQuery UI ThemeRoller. This allows the + TableTools buttons to have the same look-and-feel as other buttons on your site if you are already + using jQuery UI.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var table = $('#example').DataTable( {
+ lengthChange: false
+ } );
+
+ var tt = new $.fn.dataTable.TableTools( table );
+ $( tt.fnContainer() ).insertBefore('div.dataTables_filter');
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+Like all DataTables control elements, TableTools can have multiple instances specified in the
+ domDT
parameter of DataTables. This will
+ create two TableTools toolbars next to the table, providing the same functions.
An example of when this might be useful is to show the toolbar both above and below the table - as + is done in this example.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'T<"clear">lfrtip<"clear spacer">T',
+ tableTools: {
+ "aButtons": [ "copy", "print" ]
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+This example shows how multiple tables can be initialised with DataTables and TableTools in a single
+ call to the $().DataTable()
function. Basically it works as you would expect - no special
+ considerations need be made!
Name | +Position | +Office | +Age | +Salary | +
---|---|---|---|---|
Name | +Position | +Office | +Age | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +$320,800 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +$433,060 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +$103,600 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +$342,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +$217,500 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +$92,575 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +$324,050 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +$75,650 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +$183,000 | +
Name | +Position | +Office | +Age | +Salary | +
---|---|---|---|---|
Name | +Position | +Office | +Age | +Salary | +
Jena Gaines | +Office Manager | +London | +30 | +$90,560 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +$198,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +$132,000 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +$1,200,000 | +
Suki Burks | +Developer | +London | +53 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +$145,000 | +
Timothy Mooney | +Office Manager | +London | +37 | +$136,200 | +
Bruno Nash | +Software Engineer | +London | +38 | +$163,500 | +
Hermione Butler | +Regional Director | +London | +47 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +$103,500 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'T<"clear">lfrtip'
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+Typically when working with TableTools, the initialisation and insertion into the DOM will be done
+ automatically by DataTables, through the use of the domDT
parameter. However, it is also
+ possible to initialise TableTools manually as shown in the example below using new
+ $.fn.dataTable.TableTools();
.
Once initialised you can insert the TableTools tool bar node anywhere you wish into the DOM using
+ the fnContainer()
API method to get the node.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ var table = $('#example').DataTable();
+ var tt = new $.fn.dataTable.TableTools( table );
+
+ $( tt.fnContainer() ).insertAfter('div.info');
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+This example shows how you can add a message to the saved PDF using the sPdfMessage
+ parameter. It also shows that the orientation of the output PDF can be changed to landscape which is
+ useful if you have a lot of columns.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'T<"clear">lfrtip',
+ tableTools: {
+ "aButtons": [
+ "copy",
+ "csv",
+ "xls",
+ {
+ "sExtends": "pdf",
+ "sPdfOrientation": "landscape",
+ "sPdfMessage": "Your custom message would go here."
+ },
+ "print"
+ ]
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+This example shows now a plug-in button type can be created for TableTools. Button types are
+ attached to the $.fn.dataTable.TableTools.buttons
object and extend
+ $.fn.dataTable.TableTools.buttonBase
. All of the button options defined in the documentation
+ are available and can be overridden as required. Finally to use the button simply include its name in
+ the aButtons
array or use it as a button extender (sExtends
).
This example shows a button which will simply get the data contents of a table and set that as the + contents of another element.
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$.fn.dataTable.TableTools.buttons.copy_to_div = $.extend(
+ true,
+ $.fn.dataTable.TableTools.buttonBase,
+ {
+ "sNewLine": "<br>",
+ "sButtonText": "Copy to element",
+ "target": "",
+ "fnClick": function( button, conf ) {
+ $(conf.target).html( this.fnGetTableData(conf) );
+ }
+ }
+);
+
+$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'T<"clear">lfrtip',
+ tableTools: {
+ "aButtons": [ {
+ "sExtends": "copy_to_div",
+ "sButtonText": "Copy to div",
+ "target": "#copy"
+ } ]
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+By default, TableTools' row selector option will register a row selection click on any part of the + row. Although this is often desirable, you might wish at times to limit the row selection to just a + single column, or other elements in the row. This might be useful, for example, with Editor's inline editing, so you don't select the row on click of a cell + that is to be edited.
+ +The sRowSelector
method provides this ability, allowing a custom jQuery selector to be
+ passed in. TableTools will use the parent row of any element that is selected by the end user.
In this case, the row selector is attached to the cells in the first column of the table, and + Font Awesome is used to display a checkbox + indicating the selection state of the row, in addition to the row background colouring.
++ + | Name | +Position | +Office | +Age | +Start date | +Salary | +
---|
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ ajax: "../../../examples/ajax/data/objects.txt",
+ columns: [
+ { data: null, defaultContent: '', orderable: false },
+ { data: 'name' },
+ { data: 'position' },
+ { data: 'office' },
+ { data: 'extn' },
+ { data: 'start_date' },
+ { data: 'salary' }
+ ],
+ order: [ 1, 'asc' ],
+ dom: 'T<"clear">lfrtip',
+ tableTools: {
+ sRowSelect: 'os',
+ sRowSelector: 'td:first-child',
+ aButtons: [ 'select_all', 'select_none' ]
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
tr td:first-child {
+ text-align: center;
+ }
+
+ tr td:first-child:before {
+ content: "\f096"; /* fa-square-o */
+ font-family: FontAwesome;
+ }
+
+ tr.selected td:first-child:before {
+ content: "\f046"; /* fa-check-square-o */
+ }
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+As well as providing a button toolbar, TableTools provides everything needed to have selectable rows + in the table. TableTools has four row selection modes of operation:
+ +none
- Default, where no user row selection options are availablesingle
- A single row can be selectedmulti
- Multiple rows can be selected simply by clicking on the rowsos
- Operating System like selection where you can use the shift and ctrl / cmd
+ keys on your keyboard to add / remove rows from the selection.This example shows the multi
select option. There are also a number of pre-defined buttons to provide functions such as
+ select-all and select-none, as shown in this example.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'T<"clear">lfrtip',
+ tableTools: {
+ "sRowSelect": "multi",
+ "aButtons": [ "select_all", "select_none" ]
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+As well as providing a button toolbar, TableTools provides everything needed to have selectable rows + in the table. TableTools has four row selection modes of operation:
+ +none
- Default, where no user row selection options are availablesingle
- A single row can be selectedmulti
- Multiple rows can be selected simply by clicking on the rowsos
- Operating System like selection where you can use the shift and ctrl / cmd
+ keys on your keyboard to add / remove rows from the selection.This example shows the os
select option. Without keyboard interaction a single row can
+ be selected at a time, but multiple rows can be selected in a range using the shift key, while rows can
+ be added and removed from the selection using the ctrl / cmd key.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'T<"clear">lfrtip',
+ tableTools: {
+ "sRowSelect": "os",
+ "aButtons": [ "select_all", "select_none" ]
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+As well as providing a button toolbar, TableTools provides everything needed to have selectable rows + in the table. TableTools has four row selection modes of operation:
+ +none
- Default, where no user row selection options are availablesingle
- A single row can be selectedmulti
- Multiple rows can be selected simply by clicking on the rowsos
- Operating System like selection where you can use the shift and ctrl / cmd
+ keys on your keyboard to add / remove rows from the selection.This example shows the single
select option.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'T<"clear">lfrtip',
+ tableTools: {
+ "sRowSelect": "single"
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+This example shows the basic initialisation of TableTools by simply including the T
option in DataTables' domDT
parameter. This tell DataTables to
+ insert the TableTools toolbar in that location. Remember to include the Javascript and CSS source files
+ as well!
It is worth noting that you might need to set the sSwfPath
+ parameter to tell TableTools where to find the SWF file for copy and file save.
Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'T<"clear">lfrtip'
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+TableTools uses a Flash SWF file to provide the ability to copy text to the system clipboard and
+ save files locally. TableTools must be able to load the SWF file in order to provide these facilities.
+ If you aren't using the same directory structure as the TableTools package, you will need to set the
+ sSwfPath
TableTools parameter, as shown in this example.
Note that TableTools ships with two different SWF files - the only difference between them is that + one of them provides the ability to save PDF files while the other doesn't. The trade off is that the + PDF capable file is significantly larger in size (56K v 2K).
+Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Name | +Position | +Office | +Age | +Start date | +Salary | +
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sidney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sidney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
The Javascript shown below is used to initialise the table shown in this + example:
$(document).ready(function() {
+ $('#example').DataTable( {
+ dom: 'T<"clear">lfrtip',
+ tableTools: {
+ "sSwfPath": "../swf/copy_csv_xls_pdf.swf"
+ }
+ } );
+} );
+
+ In addition to the above code, the following Javascript library files are loaded for use in this + example:
+ + +The HTML shown below is the raw HTML table element, before it has been enhanced by + DataTables:
+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 additional CSS used is shown + below:
+ The following CSS library files are loaded for use in this example to provide the styling of the + table:
+ + +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 loaded.
+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 processing scripts can be written in any + language, using the protocol described in the + DataTables documentation.
+Copied '+lines+' row'+plural+' to the clipboard.
', + 1500 + ); + } + } ), + + "pdf": $.extend( {}, TableTools.buttonBase, { + "sAction": "flash_pdf", + "sNewLine": "\n", + "sFileName": "*.pdf", + "sButtonClass": "DTTT_button_pdf", + "sButtonText": "PDF", + "sPdfOrientation": "portrait", + "sPdfSize": "A4", + "sPdfMessage": "", + "fnClick": function( nButton, oConfig, flash ) { + this.fnSetText( flash, + "title:"+ this.fnGetTitle(oConfig) +"\n"+ + "message:"+ oConfig.sPdfMessage +"\n"+ + "colWidth:"+ this.fnCalcColRatios(oConfig) +"\n"+ + "orientation:"+ oConfig.sPdfOrientation +"\n"+ + "size:"+ oConfig.sPdfSize +"\n"+ + "--/TableToolsOpts--\n" + + this.fnGetTableData(oConfig) + ); + } + } ), + + "print": $.extend( {}, TableTools.buttonBase, { + "sInfo": "Please use your browser's print function to "+ + "print this table. Press escape when finished.
", + "sMessage": null, + "bShowAll": true, + "sToolTip": "View print view", + "sButtonClass": "DTTT_button_print", + "sButtonText": "Print", + "fnClick": function ( nButton, oConfig ) { + this.fnPrint( true, oConfig ); + } + } ), + + "text": $.extend( {}, TableTools.buttonBase ), + + "select": $.extend( {}, TableTools.buttonBase, { + "sButtonText": "Select button", + "fnSelect": function( nButton, oConfig ) { + if ( this.fnGetSelected().length !== 0 ) { + $(nButton).removeClass( this.classes.buttons.disabled ); + } else { + $(nButton).addClass( this.classes.buttons.disabled ); + } + }, + "fnInit": function( nButton, oConfig ) { + $(nButton).addClass( this.classes.buttons.disabled ); + } + } ), + + "select_single": $.extend( {}, TableTools.buttonBase, { + "sButtonText": "Select button", + "fnSelect": function( nButton, oConfig ) { + var iSelected = this.fnGetSelected().length; + if ( iSelected == 1 ) { + $(nButton).removeClass( this.classes.buttons.disabled ); + } else { + $(nButton).addClass( this.classes.buttons.disabled ); + } + }, + "fnInit": function( nButton, oConfig ) { + $(nButton).addClass( this.classes.buttons.disabled ); + } + } ), + + "select_all": $.extend( {}, TableTools.buttonBase, { + "sButtonText": "Select all", + "fnClick": function( nButton, oConfig ) { + this.fnSelectAll(); + }, + "fnSelect": function( nButton, oConfig ) { + if ( this.fnGetSelected().length == this.s.dt.fnRecordsDisplay() ) { + $(nButton).addClass( this.classes.buttons.disabled ); + } else { + $(nButton).removeClass( this.classes.buttons.disabled ); + } + } + } ), + + "select_none": $.extend( {}, TableTools.buttonBase, { + "sButtonText": "Deselect all", + "fnClick": function( nButton, oConfig ) { + this.fnSelectNone(); + }, + "fnSelect": function( nButton, oConfig ) { + if ( this.fnGetSelected().length !== 0 ) { + $(nButton).removeClass( this.classes.buttons.disabled ); + } else { + $(nButton).addClass( this.classes.buttons.disabled ); + } + }, + "fnInit": function( nButton, oConfig ) { + $(nButton).addClass( this.classes.buttons.disabled ); + } + } ), + + "ajax": $.extend( {}, TableTools.buttonBase, { + "sAjaxUrl": "/xhr.php", + "sButtonText": "Ajax button", + "fnClick": function( nButton, oConfig ) { + var sData = this.fnGetTableData(oConfig); + $.ajax( { + "url": oConfig.sAjaxUrl, + "data": [ + { "name": "tableData", "value": sData } + ], + "success": oConfig.fnAjaxComplete, + "dataType": "json", + "type": "POST", + "cache": false, + "error": function () { + alert( "Error detected when sending table data to server" ); + } + } ); + }, + "fnAjaxComplete": function( json ) { + alert( 'Ajax complete' ); + } + } ), + + "div": $.extend( {}, TableTools.buttonBase, { + "sAction": "div", + "sTag": "div", + "sButtonClass": "DTTT_nonbutton", + "sButtonText": "Text button" + } ), + + "collection": $.extend( {}, TableTools.buttonBase, { + "sAction": "collection", + "sButtonClass": "DTTT_button_collection", + "sButtonText": "Collection", + "fnClick": function( nButton, oConfig ) { + this._fnCollectionShow(nButton, oConfig); + } + } ) +}; +/* + * on* callback parameters: + * 1. node - button element + * 2. object - configuration object for this button + * 3. object - ZeroClipboard reference (flash button only) + * 4. string - Returned string from Flash (flash button only - and only on 'complete') + */ + +// Alias to match the other plug-ins styling +TableTools.buttons = TableTools.BUTTONS; + + +/** + * @namespace Classes used by TableTools - allows the styles to be override easily. + * Note that when TableTools initialises it will take a copy of the classes object + * and will use its internal copy for the remainder of its run time. + */ +TableTools.classes = { + "container": "DTTT_container", + "buttons": { + "normal": "DTTT_button", + "disabled": "DTTT_disabled" + }, + "collection": { + "container": "DTTT_collection", + "background": "DTTT_collection_background", + "buttons": { + "normal": "DTTT_button", + "disabled": "DTTT_disabled" + } + }, + "select": { + "table": "DTTT_selectable", + "row": "DTTT_selected selected" + }, + "print": { + "body": "DTTT_Print", + "info": "DTTT_print_info", + "message": "DTTT_PrintMessage" + } +}; + + +/** + * @namespace ThemeRoller classes - built in for compatibility with DataTables' + * bJQueryUI option. + */ +TableTools.classes_themeroller = { + "container": "DTTT_container ui-buttonset ui-buttonset-multi", + "buttons": { + "normal": "DTTT_button ui-button ui-state-default" + }, + "collection": { + "container": "DTTT_collection ui-buttonset ui-buttonset-multi" + } +}; + + +/** + * @namespace TableTools default settings for initialisation + */ +TableTools.DEFAULTS = { + "sSwfPath": "../swf/copy_csv_xls_pdf.swf", + "sRowSelect": "none", + "sRowSelector": "tr", + "sSelectedClass": null, + "fnPreRowSelect": null, + "fnRowSelected": null, + "fnRowDeselected": null, + "aButtons": [ "copy", "csv", "xls", "pdf", "print" ], + "oTags": { + "container": "div", + "button": "a", // We really want to use buttons here, but Firefox and IE ignore the + // click on the Flash element in the button (but not mouse[in|out]). + "liner": "span", + "collection": { + "container": "div", + "button": "a", + "liner": "span" + } + } +}; + +// Alias to match the other plug-ins +TableTools.defaults = TableTools.DEFAULTS; + + +/** + * Name of this class + * @constant CLASS + * @type String + * @default TableTools + */ +TableTools.prototype.CLASS = "TableTools"; + + +/** + * TableTools version + * @constant VERSION + * @type String + * @default See code + */ +TableTools.version = "2.2.3"; + + + +// DataTables 1.10 API +// +// This will be extended in a big way in in TableTools 3 to provide API methods +// such as rows().select() and rows.selected() etc, but for the moment the +// tabletools() method simply returns the instance. + +if ( $.fn.dataTable.Api ) { + $.fn.dataTable.Api.register( 'tabletools()', function () { + var tt = null; + + if ( this.context.length > 0 ) { + tt = TableTools.fnGetInstance( this.context[0].nTable ); + } + + return tt; + } ); +} + + + + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Initialisation + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/* + * Register a new feature with DataTables + */ +if ( typeof $.fn.dataTable == "function" && + typeof $.fn.dataTableExt.fnVersionCheck == "function" && + $.fn.dataTableExt.fnVersionCheck('1.9.0') ) +{ + $.fn.dataTableExt.aoFeatures.push( { + "fnInit": function( oDTSettings ) { + var init = oDTSettings.oInit; + var opts = init ? + init.tableTools || init.oTableTools || {} : + {}; + + return new TableTools( oDTSettings.oInstance, opts ).dom.container; + }, + "cFeature": "T", + "sFeature": "TableTools" + } ); +} +else +{ + alert( "Warning: TableTools requires DataTables 1.9.0 or newer - www.datatables.net/download"); +} + +$.fn.DataTable.TableTools = TableTools; + +})(jQuery, window, document); + +/* + * Register a new feature with DataTables + */ +if ( typeof $.fn.dataTable == "function" && + typeof $.fn.dataTableExt.fnVersionCheck == "function" && + $.fn.dataTableExt.fnVersionCheck('1.9.0') ) +{ + $.fn.dataTableExt.aoFeatures.push( { + "fnInit": function( oDTSettings ) { + var oOpts = typeof oDTSettings.oInit.oTableTools != 'undefined' ? + oDTSettings.oInit.oTableTools : {}; + + var oTT = new TableTools( oDTSettings.oInstance, oOpts ); + TableTools._aInstances.push( oTT ); + + return oTT.dom.container; + }, + "cFeature": "T", + "sFeature": "TableTools" + } ); +} +else +{ + alert( "Warning: TableTools 2 requires DataTables 1.9.0 or newer - www.datatables.net/download"); +} + + +$.fn.dataTable.TableTools = TableTools; +$.fn.DataTable.TableTools = TableTools; + + +return TableTools; +}; // /factory + + +// Define as an AMD module if possible +if ( typeof define === 'function' && define.amd ) { + define( ['jquery', 'datatables'], factory ); +} +else if ( typeof exports === 'object' ) { + // Node/CommonJS + factory( require('jquery'), require('datatables') ); +} +else if ( jQuery && !jQuery.fn.dataTable.TableTools ) { + // Otherwise simply initialise as normal, stopping multiple evaluation + factory( jQuery, jQuery.fn.dataTable ); +} + + +})(window, document); + diff --git a/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/TableTools/js/dataTables.tableTools.min.js b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/TableTools/js/dataTables.tableTools.min.js new file mode 100644 index 0000000..03fdbb0 --- /dev/null +++ b/datalets/datatable-datalet/js/DataTables-1.10.5/extensions/TableTools/js/dataTables.tableTools.min.js @@ -0,0 +1,69 @@ +/*! + TableTools 2.2.3 + 2009-2014 SpryMedia Ltd - datatables.net/license + + ZeroClipboard 1.0.4 + Author: Joseph Huckaby - MIT licensed +*/ +var TableTools; +(function(n,k,q){var p=function(m,p){var g={version:"1.0.4-TableTools2",clients:{},moviePath:"",nextId:1,$:function(a){"string"==typeof a&&(a=k.getElementById(a));a.addClass||(a.hide=function(){this.style.display="none"},a.show=function(){this.style.display=""},a.addClass=function(a){this.removeClass(a);this.className+=" "+a},a.removeClass=function(a){this.className=this.className.replace(RegExp("\\s*"+a+"\\s*")," ").replace(/^\s+/,"").replace(/\s+$/,"")},a.hasClass=function(a){return!!this.className.match(RegExp("\\s*"+a+ +"\\s*"))});return a},setMoviePath:function(a){this.moviePath=a},dispatch:function(a,b,c){(a=this.clients[a])&&a.receiveEvent(b,c)},register:function(a,b){this.clients[a]=b},getDOMObjectPosition:function(a){var b={left:0,top:0,width:a.width?a.width:a.offsetWidth,height:a.height?a.height:a.offsetHeight};""!==a.style.width&&(b.width=a.style.width.replace("px",""));""!==a.style.height&&(b.height=a.style.height.replace("px",""));for(;a;)b.left+=a.offsetLeft,b.top+=a.offsetTop,a=a.offsetParent;return b}, +Client:function(a){this.handlers={};this.id=g.nextId++;this.movieId="ZeroClipboard_TableToolsMovie_"+this.id;g.register(this.id,this);a&&this.glue(a)}};g.Client.prototype={id:0,ready:!1,movie:null,clipText:"",fileName:"",action:"copy",handCursorEnabled:!0,cssEffects:!0,handlers:null,sized:!1,glue:function(a,b){this.domElement=g.$(a);var c=99;this.domElement.style.zIndex&&(c=parseInt(this.domElement.style.zIndex,10)+1);var d=g.getDOMObjectPosition(this.domElement);this.div=k.createElement("div");var f= +this.div.style;f.position="absolute";f.left="0px";f.top="0px";f.width=d.width+"px";f.height=d.height+"px";f.zIndex=c;"undefined"!=typeof b&&""!==b&&(this.div.title=b);0!==d.width&&0!==d.height&&(this.sized=!0);this.domElement&&(this.domElement.appendChild(this.div),this.div.innerHTML=this.getHTML(d.width,d.height).replace(/&/g,"&"))},positionElement:function(){var a=g.getDOMObjectPosition(this.domElement),b=this.div.style;b.position="absolute";b.width=a.width+"px";b.height=a.height+"px";0!==a.width&& +0!==a.height&&(this.sized=!0,b=this.div.childNodes[0],b.width=a.width,b.height=a.height)},getHTML:function(a,b){var c="",d="id="+this.id+"&width="+a+"&height="+b;if(navigator.userAgent.match(/MSIE/))var f=location.href.match(/^https/i)?"https://":"http://",c=c+('');else c+='';return c},hide:function(){this.div&&(this.div.style.left="-2000px")},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide();this.div.innerHTML="";var a=k.getElementsByTagName("body")[0];try{a.removeChild(this.div)}catch(b){}this.div=this.domElement=null}},reposition:function(a){a&&((this.domElement=g.$(a))||this.hide());if(this.domElement&&this.div){var a=g.getDOMObjectPosition(this.domElement),b=this.div.style;b.left=""+a.left+ +"px";b.top=""+a.top+"px"}},clearText:function(){this.clipText="";this.ready&&this.movie.clearText()},appendText:function(a){this.clipText+=a;this.ready&&this.movie.appendText(a)},setText:function(a){this.clipText=a;this.ready&&this.movie.setText(a)},setCharSet:function(a){this.charSet=a;this.ready&&this.movie.setCharSet(a)},setBomInc:function(a){this.incBom=a;this.ready&&this.movie.setBomInc(a)},setFileName:function(a){this.fileName=a;this.ready&&this.movie.setFileName(a)},setAction:function(a){this.action= +a;this.ready&&this.movie.setAction(a)},addEventListener:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");this.handlers[a]||(this.handlers[a]=[]);this.handlers[a].push(b)},setHandCursor:function(a){this.handCursorEnabled=a;this.ready&&this.movie.setHandCursor(a)},setCSSEffects:function(a){this.cssEffects=!!a},receiveEvent:function(a,b){var c,a=a.toString().toLowerCase().replace(/^on/,"");switch(a){case "load":this.movie=k.getElementById(this.movieId);if(!this.movie){c=this;setTimeout(function(){c.receiveEvent("load", +null)},1);return}if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){c=this;setTimeout(function(){c.receiveEvent("load",null)},100);this.ready=!0;return}this.ready=!0;this.movie.clearText();this.movie.appendText(this.clipText);this.movie.setFileName(this.fileName);this.movie.setAction(this.action);this.movie.setCharSet(this.charSet);this.movie.setBomInc(this.incBom);this.movie.setHandCursor(this.handCursorEnabled);break;case "mouseover":this.domElement&&this.cssEffects&& +this.recoverActive&&this.domElement.addClass("active");break;case "mouseout":this.domElement&&this.cssEffects&&(this.recoverActive=!1,this.domElement.hasClass("active")&&(this.domElement.removeClass("active"),this.recoverActive=!0));break;case "mousedown":this.domElement&&this.cssEffects&&this.domElement.addClass("active");break;case "mouseup":this.domElement&&this.cssEffects&&(this.domElement.removeClass("active"),this.recoverActive=!1)}if(this.handlers[a])for(var d=0,f=this.handlers[a].length;d< +f;d++){var e=this.handlers[a][d];if("function"==typeof e)e(this,b);else if("object"==typeof e&&2==e.length)e[0][e[1]](this,b);else if("string"==typeof e)n[e](this,b)}}};n.ZeroClipboard_TableTools=g;var e=jQuery;TableTools=function(a,b){!this instanceof TableTools&&alert("Warning: TableTools must be initialised with the keyword 'new'");this.s={that:this,dt:e.fn.dataTable.Api?(new e.fn.dataTable.Api(a)).settings()[0]:a.fnSettings(),print:{saveStart:-1,saveLength:-1,saveScroll:-1,funcEnd:function(){}}, +buttonCounter:0,select:{type:"",selected:[],preRowSelect:null,postSelected:null,postDeselected:null,all:!1,selectedClass:""},custom:{},swfPath:"",buttonSet:[],master:!1,tags:{}};this.dom={container:null,table:null,print:{hidden:[],message:null},collection:{collection:null,background:null}};this.classes=e.extend(!0,{},TableTools.classes);this.s.dt.bJUI&&e.extend(!0,this.classes,TableTools.classes_themeroller);this.fnSettings=function(){return this.s};"undefined"==typeof b&&(b={});TableTools._aInstances.push(this); +this._fnConstruct(b);return this};TableTools.prototype={fnGetSelected:function(a){var b=[],c=this.s.dt.aoData,d=this.s.dt.aiDisplay,f;if(a){a=0;for(f=d.length;aCopied "+a+" row"+(1==a?"":"s")+" to the clipboard.
",1500)}}),pdf:e.extend({},TableTools.buttonBase,{sAction:"flash_pdf",sNewLine:"\n",sFileName:"*.pdf",sButtonClass:"DTTT_button_pdf", +sButtonText:"PDF",sPdfOrientation:"portrait",sPdfSize:"A4",sPdfMessage:"",fnClick:function(a,b,c){this.fnSetText(c,"title:"+this.fnGetTitle(b)+"\nmessage:"+b.sPdfMessage+"\ncolWidth:"+this.fnCalcColRatios(b)+"\norientation:"+b.sPdfOrientation+"\nsize:"+b.sPdfSize+"\n--/TableToolsOpts--\n"+this.fnGetTableData(b))}}),print:e.extend({},TableTools.buttonBase,{sInfo:"Please use your browser's print function to print this table. Press escape when finished.
",sMessage:null,bShowAll:!0, +sToolTip:"View print view",sButtonClass:"DTTT_button_print",sButtonText:"Print",fnClick:function(a,b){this.fnPrint(!0,b)}}),text:e.extend({},TableTools.buttonBase),select:e.extend({},TableTools.buttonBase,{sButtonText:"Select button",fnSelect:function(a){0!==this.fnGetSelected().length?e(a).removeClass(this.classes.buttons.disabled):e(a).addClass(this.classes.buttons.disabled)},fnInit:function(a){e(a).addClass(this.classes.buttons.disabled)}}),select_single:e.extend({},TableTools.buttonBase,{sButtonText:"Select button", +fnSelect:function(a){1==this.fnGetSelected().length?e(a).removeClass(this.classes.buttons.disabled):e(a).addClass(this.classes.buttons.disabled)},fnInit:function(a){e(a).addClass(this.classes.buttons.disabled)}}),select_all:e.extend({},TableTools.buttonBase,{sButtonText:"Select all",fnClick:function(){this.fnSelectAll()},fnSelect:function(a){this.fnGetSelected().length==this.s.dt.fnRecordsDisplay()?e(a).addClass(this.classes.buttons.disabled):e(a).removeClass(this.classes.buttons.disabled)}}),select_none:e.extend({}, +TableTools.buttonBase,{sButtonText:"Deselect all",fnClick:function(){this.fnSelectNone()},fnSelect:function(a){0!==this.fnGetSelected().length?e(a).removeClass(this.classes.buttons.disabled):e(a).addClass(this.classes.buttons.disabled)},fnInit:function(a){e(a).addClass(this.classes.buttons.disabled)}}),ajax:e.extend({},TableTools.buttonBase,{sAjaxUrl:"/xhr.php",sButtonText:"Ajax button",fnClick:function(a,b){var c=this.fnGetTableData(b);e.ajax({url:b.sAjaxUrl,data:[{name:"tableData",value:c}],success:b.fnAjaxComplete, +dataType:"json",type:"POST",cache:!1,error:function(){alert("Error detected when sending table data to server")}})},fnAjaxComplete:function(){alert("Ajax complete")}}),div:e.extend({},TableTools.buttonBase,{sAction:"div",sTag:"div",sButtonClass:"DTTT_nonbutton",sButtonText:"Text button"}),collection:e.extend({},TableTools.buttonBase,{sAction:"collection",sButtonClass:"DTTT_button_collection",sButtonText:"Collection",fnClick:function(a,b){this._fnCollectionShow(a,b)}})};TableTools.buttons=TableTools.BUTTONS; +TableTools.classes={container:"DTTT_container",buttons:{normal:"DTTT_button",disabled:"DTTT_disabled"},collection:{container:"DTTT_collection",background:"DTTT_collection_background",buttons:{normal:"DTTT_button",disabled:"DTTT_disabled"}},select:{table:"DTTT_selectable",row:"DTTT_selected selected"},print:{body:"DTTT_Print",info:"DTTT_print_info",message:"DTTT_PrintMessage"}};TableTools.classes_themeroller={container:"DTTT_container ui-buttonset ui-buttonset-multi",buttons:{normal:"DTTT_button ui-button ui-state-default"}, +collection:{container:"DTTT_collection ui-buttonset ui-buttonset-multi"}};TableTools.DEFAULTS={sSwfPath:"../swf/copy_csv_xls_pdf.swf",sRowSelect:"none",sRowSelector:"tr",sSelectedClass:null,fnPreRowSelect:null,fnRowSelected:null,fnRowDeselected:null,aButtons:["copy","csv","xls","pdf","print"],oTags:{container:"div",button:"a",liner:"span",collection:{container:"div",button:"a",liner:"span"}}};TableTools.defaults=TableTools.DEFAULTS;TableTools.prototype.CLASS="TableTools";TableTools.version="2.2.3"; +e.fn.dataTable.Api&&e.fn.dataTable.Api.register("tabletools()",function(){var a=null;0