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() { +
Option | Default | Description |
---|---|---|
cssStickyHeaders_offset | +0 | +Set 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_includeCaption | +true | +If false and a table caption exist, it won't be included in the sticky header. |
+
cssStickyHeaders_attachTo | +null | +Set this option as a jQuery selector or object where the sticky header will be attached.
+
+
+
|
+
cssStickyHeaders_filteredToTop | +true | +Scroll 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.
+ |
+