ngx-super-table icon indicating copy to clipboard operation
ngx-super-table copied to clipboard

Computed values and dates not filtered correctly

Open cmckni3 opened this issue 8 years ago • 3 comments

In the demo, height and birthday do not filter correctly. They filter based on the actual value instead of the displayed value.

cmckni3 avatar Jul 09 '17 06:07 cmckni3

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?

andyperlitch avatar Jul 10 '17 02:07 andyperlitch

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.

cmckni3 avatar Jul 10 '17 02:07 cmckni3

Ahh I figured out the date. The header title says it filter by relative dates. Cool but not typical/obvious.

cmckni3 avatar Aug 03 '17 20:08 cmckni3