]>
Commit | Line | Data |
---|---|---|
31f18b77 FG |
1 | # TableTools |
2 | ||
3 | TableTools is a plug-in for the DataTables HTML table enhancer, which adds a highly customisable button toolbar to a DataTable. Key features include: | |
4 | ||
5 | * Copy to clipboard | |
6 | * Save table data as CSV, XLS or PDF files | |
7 | * Print view for clean printing | |
8 | * Row selection options | |
9 | * Easy use predefined buttons | |
10 | * Simple customisation of buttons | |
11 | * Well defined API for advanced control | |
12 | ||
13 | ||
14 | # Installation | |
15 | ||
16 | To use TableTools, first download DataTables ( http://datatables.net/download ) and place the unzipped TableTools package into a `extensions` directory in the DataTables package (in DataTables 1.9- use the `extras` directory). This will allow the pages in the examples to operate correctly. To see the examples running, open the `examples` directory in your web-browser. | |
17 | ||
18 | ||
19 | # Basic usage | |
20 | ||
21 | TableTools is initialised using the `T` option that it adds to DataTables' `dom` option. For example: | |
22 | ||
23 | ```js | |
24 | $(document).ready( function () { | |
25 | $('#example').DataTable( { | |
26 | dom: 'T<"clear">lfrtip' | |
27 | } ); | |
28 | } ); | |
29 | ``` | |
30 | ||
31 | ||
32 | # Documentation / support | |
33 | ||
34 | * Documentation: http://datatables.net/extensions/tabletools/ | |
35 | * DataTables support forums: http://datatables.net/forums | |
36 | ||
37 | ||
38 | # GitHub | |
39 | ||
40 | If you fancy getting involved with the development of TableTools and help make it better, please refer to its GitHub repo: https://github.com/DataTables/TableTools | |
41 |