akveo / akveo/ng2-smart-table

filterFunction not called when hideSubHeader: true

未关闭
#457 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.6k
派生
867
PR 合并指标
30 天内没有已合并 PR

描述

In my angular application I have hidden the sub-header as I have common filter for all text fields.
Further I need a selection of time periods (the field in the array given to the localDataSet is a string containing JSON date format)
Now i realized that the filterFunction is only called when the filter field actually is shown. When it is hidden, either by hideSubHeaders or by setting filter: false for that column it is no longer executed.

I have created a simplified example in https://plnkr.co/edit/tjmxZLJukGrc8ZxhBI8v?p=preview

Pressing the button "just today" shows no result unless you remove the line hideSubHeaders: true.
The button "just with "f"" is just there to show that setFilter works for default filtering.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。