Inverse Search in Filter-Control #7937
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤔Type of Request
🔗Resolves an issue?
It does not resolve an issue in the Filter Control extension, but it adds the ability to do an inverse search.
📝Changelog
By prepending a keyword with
[!], this keyword gets excluded from the list. It uses AND logic and can be combined with the regular filtering provided by Filter Control.For example, let's take the latest CVEs published by NVD:
The user is interested in vulnerabilities related to memory:
However, the user is not interested in Linux, and excludes these results:
💡Example(s)?
A demo is available at https://live.bootstrap-table.com/code/0x164C9DFC/18990, albeit with a reduced dataset.
The demo also features a customSearch function offering the same functionality to the regular search provided by Bootstrap-Table.
☑️Self Check before Merge
I have no updated the documentation. No new customizable parameters were introduced.
[!]is hardcoded and the algorithm modified accordingly to fit my use-case. If you think this is a useful improvement, please modify as you seem fit for the project.