Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

FlexibleUtils.highlightText with multi-span in same string #443

Closed
jrcacd opened this issue Sep 8, 2017 · 3 comments
Closed

FlexibleUtils.highlightText with multi-span in same string #443

jrcacd opened this issue Sep 8, 2017 · 3 comments
Milestone

Comments

@jrcacd
Copy link
Contributor

jrcacd commented Sep 8, 2017

How to highlight multiple searched strings in the same view?

@davideas davideas added this to the 5.0.0-rc3 milestone Sep 8, 2017
@davideas davideas changed the title FlexibleUtils.highlightText FlexibleUtils.highlightText with multi-span in same string Sep 8, 2017
@davideas
Copy link
Owner

davideas commented Sep 8, 2017

@jrcacd, you can't with the current solution, I need to enhance the function.
Thanks for the hint!!

@davideas
Copy link
Owner

davideas commented Sep 8, 2017

Since I was curious I tried already. But I did much more: I've improved the span text by skipping the consecutive text.

Examples:

searchText / to span: 2
  • Item 22
  • Item 1232
  • Item 1224
searchText / to span: 22
  • Item 22
  • Item 1232
  • Item 1224
searchText / to span: te
  • Internal Item
  • Item tetext

@jrcacd
Copy link
Contributor Author

jrcacd commented Sep 8, 2017

Very good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants