ngx-super-table
ngx-super-table copied to clipboard
Computed values and dates not filtered correctly
In the demo, height and birthday do not filter correctly. They filter based on the actual value instead of the displayed value.
Hey Chris (sorry, posted comments with an alt account),
In my angularJS-equivalent project, I provide a like filter option and a likeFormatted option. The former filters based on the actual value and the latter value filters on the post-formatted value. Would something like that address your need?
My only use case right now is dates.
I actually think I would prefer something along the lines of that. In the past, I have just used a simple indexOf(text) >= 0 comparison after calling toLowerCase on the search term and value strings.
I really like the relative date searching as well.
Ahh I figured out the date. The header title says it filter by relative dates. Cool but not typical/obvious.