akveo / akveo/ng2-smart-table

filterFunction not called when hideSubHeader: true

Open
#457 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
867
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.