|
1 | | -/*! FixedHeader 2.1.0 |
| 1 | +/*! FixedHeader 2.1.1 |
2 | 2 | * ©2010-2014 SpryMedia Ltd - datatables.net/license |
3 | 3 | */ |
4 | 4 |
|
5 | 5 | /** |
6 | 6 | * @summary FixedHeader |
7 | 7 | * @description Fix a table's header or footer, so it is always visible while |
8 | 8 | * Scrolling |
9 | | - * @version 2.1.0 |
| 9 | + * @version 2.1.1 |
10 | 10 | * @file dataTables.fixedHeader.js |
11 | 11 | * @author SpryMedia Ltd (www.sprymedia.co.uk) |
12 | 12 | * @contact www.sprymedia.co.uk/contact |
@@ -37,20 +37,23 @@ var factory = function( $, DataTable ) { |
37 | 37 |
|
38 | 38 | /* |
39 | 39 | * Function: FixedHeader |
40 | | - * Purpose: Provide 'fixed' header, footer and columns on an HTML table |
| 40 | + * Purpose: Provide 'fixed' header, footer and columns for a DataTable |
41 | 41 | * Returns: object:FixedHeader - must be called with 'new' |
42 | 42 | * Inputs: mixed:mTable - target table |
43 | | - * 1. DataTable object - when using FixedHeader with DataTables, or |
44 | | - * 2. HTML table node - when using FixedHeader without DataTables |
45 | | - * object:oInit - initialisation settings, with the following properties (each optional) |
46 | | - * bool:top - fix the header (default true) |
47 | | - * bool:bottom - fix the footer (default false) |
48 | | - * int:left - fix the left column(s) (default 0) |
49 | | - * int:right - fix the right column(s) (default 0) |
50 | | - * int:zTop - fixed header zIndex |
51 | | - * int:zBottom - fixed footer zIndex |
52 | | - * int:zLeft - fixed left zIndex |
53 | | - * int:zRight - fixed right zIndex |
| 43 | + * @param {object} dt DataTables instance or HTML table node. With DataTables |
| 44 | + * 1.10 this can also be a jQuery collection (with just a single table in its |
| 45 | + * result set), a jQuery selector, DataTables API instance or settings |
| 46 | + * object. |
| 47 | + * @param {object} [oInit] initialisation settings, with the following |
| 48 | + * properties (each optional) |
| 49 | + * * bool:top - fix the header (default true) |
| 50 | + * * bool:bottom - fix the footer (default false) |
| 51 | + * * int:left - fix the left column(s) (default 0) |
| 52 | + * * int:right - fix the right column(s) (default 0) |
| 53 | + * * int:zTop - fixed header zIndex |
| 54 | + * * int:zBottom - fixed footer zIndex |
| 55 | + * * int:zLeft - fixed left zIndex |
| 56 | + * * int:zRight - fixed right zIndex |
54 | 57 | */ |
55 | 58 | FixedHeader = function ( mTable, oInit ) { |
56 | 59 | /* Sanity check - you just know it will happen */ |
@@ -213,12 +216,12 @@ FixedHeader.prototype = { |
213 | 216 | } ); |
214 | 217 |
|
215 | 218 | $(s.nTable) |
216 | | - .on('column-reorder', function () { |
| 219 | + .on('column-reorder.dt', function () { |
217 | 220 | FixedHeader.fnMeasure(); |
218 | 221 | that._fnUpdateClones( true ); |
219 | 222 | that._fnUpdatePositions(); |
220 | 223 | } ) |
221 | | - .on('column-visibility', function () { |
| 224 | + .on('column-visibility.dt', function () { |
222 | 225 | FixedHeader.fnMeasure(); |
223 | 226 | that._fnUpdateClones( true ); |
224 | 227 | that._fnUpdatePositions(); |
@@ -979,7 +982,7 @@ FixedHeader.fnMeasure = function () |
979 | 982 | }; |
980 | 983 |
|
981 | 984 |
|
982 | | -FixedHeader.version = "2.1.0"; |
| 985 | +FixedHeader.version = "2.1.1"; |
983 | 986 |
|
984 | 987 |
|
985 | 988 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
|
0 commit comments