]>
Commit | Line | Data |
---|---|---|
31f18b77 FG |
1 | # AutoFill |
2 | ||
3 | 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: | |
4 | ||
5 | * Click and drag cell content insertion | |
6 | * Automatic incrementing of numeric information | |
7 | * Enable and disable on any column | |
8 | * Detailed callback functions for customisation | |
9 | * Support for both DataTables and browser window scrolling | |
10 | ||
11 | ||
12 | # Installation | |
13 | ||
14 | 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. | |
15 | ||
16 | ||
17 | # Basic usage | |
18 | ||
19 | AutoFill is initialised using the `$.fn.dataTable.AutoFill` constructor. For example: | |
20 | ||
21 | ```js | |
22 | $(document).ready( function () { | |
23 | var table = $('#example').dataTable(); | |
24 | new $.fn.dataTable.AutoFill( table ); | |
25 | } ); | |
26 | ``` | |
27 | ||
28 | ||
29 | # Documentation / support | |
30 | ||
31 | * Documentation: http://datatables.net/extensions/autofill/ | |
32 | * DataTables support forums: http://datatables.net/forums | |
33 | ||
34 | ||
35 | # GitHub | |
36 | ||
37 | 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 | |
38 |