feat: add slot and flag to be able to toggle the clear icon, such that for … #144
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.
…empty input one can see that icon and for given input we see the x icon to clear the input
I want to be able to see a magnifying glass/lens instead of the x icon when there is no input. As soon as the user gives any input, i would like to see the x again to be able to clear the input.
Therefore, I created a flag which enables this as well as added a slot such that one can input any
<img>
or<svg>
tag or the like. Further, the slot allows to attach a function to the toggleIcon such that I can e.g. trigger a search functionality or so.