diff --git a/docs/example-widget-css-sticky-header.html b/docs/example-widget-css-sticky-header.html index 84d56f76..5b2af5b3 100644 --- a/docs/example-widget-css-sticky-header.html +++ b/docs/example-widget-css-sticky-header.html @@ -70,11 +70,12 @@ headerTemplate : '{content} {icon}', // Add icon for various themes widgets: ['zebra', 'filter', 'cssStickyHeaders'], widgetOptions: { + // caption set by demo button value + cssStickyHeaders_addCaption: addCaption, // jQuery selector or object to attach sticky header to cssStickyHeaders_attachTo: '.mfp-wrap', - cssStickyHeaders_offset: 0, - // caption set by demo button value - cssStickyHeaders_addCaption: addCaption + cssStickyHeaders_filteredToTop : true, + cssStickyHeaders_offset: 0 } }); } @@ -88,12 +89,11 @@ widgets: [ 'zebra', 'cssStickyHeaders', 'filter' ], widgetOptions: { - cssStickyHeaders_offset : 0, cssStickyHeaders_addCaption : true, // jQuery selector or object to attach sticky header to cssStickyHeaders_attachTo : null, cssStickyHeaders_filteredToTop : true, - cssStickyHeaders_zIndex : 10 + cssStickyHeaders_offset : 0 } }); @@ -116,7 +116,7 @@ $(function() { $('link.theme').each(function() { this.disabled = true; }); - var themes = 'default blue green grey ice black-ice dark dropbox', + var themes = 'blue default green grey ice black-ice dark dropbox', i, o = '', t = themes.split(' '); for (i = 0; i < t.length; i++) { o += ''; @@ -179,6 +179,57 @@ $(function() { +

Options

+
+

cssStickyHeaders widget defaults

+
+ TIP! Click on the link in the function column to reveal full details (or toggle|show|hide all) or double click to update the browser location. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OptionDefaultDescription
cssStickyHeaders_offset0Set this to a number (in pixels) or jquery selector targeting the position:fixed element in which to place the sticky header below while scrolling.
cssStickyHeaders_includeCaptiontrueIf false and a table caption exist, it won't be included in the sticky header.
nullSet this option as a jQuery selector or object where the sticky header will be attached. +
+
    +
  • Setting this option with either a jQuery selector string (".wrapper") or jQuery object ($(".wrapper")).
  • +
  • This option contains the target to which the sticky header will attach - see the first example below.
  • +
+
+
trueScroll table top into view after filtering +
+
+ This is needed when the user choses to filter the table which results in fewer rows than are currently visible in the browser viewport. So, the sticky header may still exist, but the table body may not be seen. Setting this option to true forces the original table header to scroll back into view. +
+
+
+

Change log