【问题标题】:In tablesorter, dropdown list is not updated after a filter is set from other columns在tablesorter中,从其他列设置过滤器后,下拉列表不会更新
【发布时间】:2015-09-16 13:17:34
【问题描述】:

我刚刚在演示页面上试过:https://mottie.github.io/tablesorter/docs/example-widget-bootstrap-theme.html

我过滤了数据: 专业:数学 微积分:100

之后只剩下三个记录,都是男学生。但是我仍然可以从下拉列表中选择女性来过滤性别。

设置其他过滤器后如何更新下拉列表?

【问题讨论】:

    标签: tablesorter


    【解决方案1】:

    我认为你想要的是在标题上使用filter-onlyAvail class name

    添加该类后,该列中的选择将仅显示该指定列的可用(可见)选项。如果您在“折扣”列查看this demo。您会看到选项受到限制,因为过滤器应用于其他列。

    【讨论】:

    • 太棒了。干杯。
    猜你喜欢
    • 1970-01-01
    • 2016-06-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-26
    • 1970-01-01
    相关资源
    最近更新 更多