Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can stickyHeader apply to <caption> as well? #126

Closed
cautionbug opened this issue Aug 31, 2012 · 1 comment
Closed

Can stickyHeader apply to <caption> as well? #126

cautionbug opened this issue Aug 31, 2012 · 1 comment

Comments

@cautionbug
Copy link

In trying to make my data tables more semantically correct, i want to avoid placing a table title inside a cell, so i've been using the <caption> tag as (i think) it was intended.

However, stickyHeaders doesn't seem to apply to it, even if i add it to the selectorHeaders string like so:

$('table').tablesorter({
  selectorHeaders: '> caption, > thead th',
  sortMultiSortKey: 'ctrlKey',
  textExtraction  : 'complex',
  widgets: ['stickyHeaders', 'uitheme'],
  widgetOptions: {
    stickyHeaders: 'tablesorter-stickyHeader',
    uitheme: ['ui-icon-triangle-2-n-s', 'ui-icon-triangle-1-s', 'ui-icon-triangle-1-n']
  }
});

The headers stick, which is great. i'd just like to provide my users with a reference point of which table they're looking at (they demand several to clutter up the same page, go figure).

Any thoughts?

@Mottie
Copy link
Owner

Mottie commented Sep 1, 2012

The sticky headers widget doesn't include the caption, but I'll look into adding this in version 2.4. Thanks for the suggestion.

@Mottie Mottie closed this as completed in 2134d6d Apr 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants