Skip to content

Commit 7af4563

Browse files
committed
Fix: Typo and clarity of automatic offset example
- Thanks sshelzi
1 parent 963cc1b commit 7af4563

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/options/offset-automatic.xml

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
<css lib="datatables fixedheader" />
55
<js lib="jquery datatables fixedheader">
66
<![CDATA[
7+
// Note although the initialisation here is identical to the basic FixedHeader case
8+
// There is a fixed position element which has a class of `fh-fixedHeader` which
9+
// FixedHeader will automatically detect. See the description above.
10+
711
$(document).ready(function() {
812
$('#example').DataTable( {
913
fixedHeader: true
@@ -21,7 +25,7 @@ It is not uncommon to have a fixed element at the top or bottom of a web-page to
2125
* Automatically, by assigning the class `-string fh-fixedHeader` or `-string fh-fixedFooter` to the fixed elements
2226
* Using the `fh-init fixedHeader.headerOffset` and `fh-init fixedHeader.footerOffset` options.
2327
24-
This example demonstrates the first option where a header element has the class `-string fh-fixedHeader` assigned to it. FixedHeader automatically detects this element and will offer the header by the required amount.
28+
This example demonstrates the first option where a header element has the class `-string fh-fixedHeader` assigned to it. FixedHeader automatically detects this element and will offset the header by the required amount.
2529
2630
<div class="fh-fixedHeader" style="position:fixed; background-color:#4E6CA3; top:0; right:0; left:0; height:50px; z-index:1;"> </div>
2731

0 commit comments

Comments
 (0)