【问题标题】:jQuery Tablesorter - How do you disable filter by column?jQuery Tablesorter - 如何禁用按列过滤?
【发布时间】:2016-05-03 10:08:48
【问题描述】:

我正在尝试遵循以下示例: ftp://ftp.jax.org/dgatti/ShortCourse2015/webapp/eqtl-viewer/src/static/js/jquery.tablesorter/docs/example-widget-filter.html

但是我无法禁用单个列的搜索小部件。

如何禁用表中特定列的搜索小部件(输入)?

谢谢

【问题讨论】:

    标签: javascript jquery html tablesorter tablesort


    【解决方案1】:

    哇,这个链接指向我从未听说过的某个网站,而且那是一个非常旧的版本。

    最新的文档可以在这里看到:http://mottie.github.io/tablesorter/docs/index.html

    如果您查看过滤器小部件文档的"classes" tab,您会发现在标题中添加类名filter-false 将禁用该列的输入过滤器。

    <th class="filter-false">Header</th>
    

    如果你想隐藏禁用的过滤器,那么添加一些额外的css:

    input.disabled { display: none; }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-17
      相关资源
      最近更新 更多