Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

make filter less rigid #47

Open
dave-ics opened this issue Jul 14, 2023 · 1 comment
Open

make filter less rigid #47

dave-ics opened this issue Jul 14, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@dave-ics
Copy link

dave-ics commented Jul 14, 2023

Is your feature request related to a problem? Please describe.
my array of json has address_1, address_2, address_3 it's a pain to pass a filter string to get all 3

Describe the solution you'd like
ideally I could filter('addr') and any key/value pair with those 4 consecutive letters would remain while everything else gets hidden.

Describe alternatives you've considered
right now i just do **.entire_field_name

Additional context
Might need to put this functionality behind an option like filterMode(...) which allows users to keep the exact (default), or fuzzy (generous filter matching both keys and values with partial strings)

@dave-ics dave-ics added the enhancement New feature or request label Jul 14, 2023
@alenaksu alenaksu self-assigned this Aug 25, 2023
@alenaksu
Copy link
Owner

Hi @dave-ics, if you haven't tried it yet, you could pass a RegExp to the filter, that would give you much more flexibility.

Take a look at this example
https://codepen.io/alenaksu/pen/vYvNvWj

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants