| scrollContainer |
function |
null |
Defines a container element inside of which the table scrolls vertically and/or horizontally. usually a wrapping div |
| scrollingTop |
number or function |
0 |
Offset from the top of the window where the floating header will 'stick' when scrolling down |
| bottom: |
number or function |
0 |
Offset from the bottom of the window where the floating header will 'stick' when scrolling down |
| floatTableClass |
string |
floatThead-table |
This class is added to the table element after you run floatThead on it |
| floatContainerClass |
string |
floatThead-container |
This class is added to the container div inside of which your thead will spend time floating |
| useAbsolutePositioning |
boolean |
true |
Position the floated header using absolute positioning or using fixed positioning. Fixed positioning performs better with tables that use window scrolling, but fails miserably on highly dynamic pages where DOM can be suddenly modified causing the location of the floated table to shift. (You should call .floatThead('reflow') in this case, but you cant always instrument your code to make that call.) |
| debounceResizeMs |
number |
1 |
The headers are repositioned on resize. Because this event has the potential to fire a bunch of times, it is debounced. This is the debounce rate. |
| zIndex |
number |
1001 |
z-index of the floating header |
| headerCellSelector |
string |
tr:first>th:visible |
Specifies the selector used to find header cells (in the table's thead element) |
| cellTag |
string |
null |
Deprecated! Use headerCellSelector instead. Will be removed in v1.3.0 |
| debug |
boolean |
false |
Point out various possible issues via console.log if it is available |
| getSizingRow |
function |
undefined |
Used by IE Only If your table's first visible row (tbody tr:visible:first>*) contains td or th elements with colspans, then you need to return another set of cells which have no colspans. In other words the selector should return the same number of cells as columns in your table. In depth docs |
| copyTableClass |
boolean |
true |
Should the table's class attribute be copied to the floated table? This make the styles written for the table's class selector apply also to the floated header. However, if you are later selecting this table by class you may be surprised to find 2 tables. |
| enableAria |
boolean |
false |
Copy the floated header's text back into original table for screen readers. This may cause css layout issues because that text might be styled in unforeseen ways. (aria-* attributes are always used even when set to false). |
| autoReflow |
boolean |
false |
Experimental use MutationObserver (on good browsers) to reflow automatically when internal table DOM changes, or DOM within scrollContainer |