From 800776f602676dc77b72fb2bb2c0d096e902cd4d Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Fri, 25 Nov 2016 08:43:43 -0600 Subject: [PATCH] Docs: Add link to disable thead row example. Fixes #1326 --- docs/example-widget-column-selector.html | 2 +- docs/index.html | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/example-widget-column-selector.html b/docs/example-widget-column-selector.html index 93dd1baef..7c5df4d67 100644 --- a/docs/example-widget-column-selector.html +++ b/docs/example-widget-column-selector.html @@ -710,7 +710,7 @@

HTML

<table class="tablesorter custom-popup"> <thead> - <tr> + <tr class="tablesorter-ignoreRow"> <!-- Ignore all cell content; disable sorting & form interaction --> <th data-priority="critical">Name</th> <!-- Remove column from selection popup by including --> <!-- data-priority="Anything other than 1-6" OR data-column-selector="disable" OR class="columnSelector-disable" --> diff --git a/docs/index.html b/docs/index.html index 02e2911fa..37db9da14 100644 --- a/docs/index.html +++ b/docs/index.html @@ -322,7 +322,8 @@

Sorting

  • Using sortReset & sortRestart options (sortReset & sortRestart).
  • Resetting the entire table sort (sortReset method; v2.4.7).
  • Lock sort order.
  • -
  • Disable sort (v2.18.1).
  • +
  • Disable sort for a column (v2.18.1).
  • +
  • Disable sort for an entire row (cssIgnoreRow class; v2.18.4).
  • Modify a sort: @@ -853,7 +854,7 @@

    Configuration

    Class name to add to a table header row if you want all cells within this row to be ignored (v2.18.4).

    - Header rows with this class name will not be added into the table.config.$headers variable.
    + Header rows with this class name will not be added into the table.config.$headers variable. Meaning, any cells in the row will have sorting disabled, and any form element interaction within these cells will also be ignored by tablesorter.

    This class name should be added to header rows that contain custom HTML, like for the pager controls, custom filter row or table toolbar.