bvaughn / react-highlight-words

React component to highlight words within a larger body of text
https://bvaughn.github.io/react-highlight-words/
MIT License
2.16k stars 170 forks source link

Binding click/hover events on highlighted words #79

Closed HarishSha closed 5 years ago

HarishSha commented 5 years ago

Can we bind any event on highlighted word. e.g onClick, onHover, onMouseover, etc

akkonrad commented 5 years ago

hey @HarishSha did you solve that?

akkonrad commented 5 years ago

you don't have to, actually that can be achieved with the current codebase by passing the marked element instead of the defalut one.

śr., 2 paź 2019 o 19:52 Harish Kumar notifications@github.com napisał(a):

Yes I solved that. on click it is opening popup like a word suggestion box. I was extremely busy in switching job and couldn't upload it. Will do it by Monday Morning.. Extremely Sorry for late reply.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bvaughn/react-highlight-words/issues/79?email_source=notifications&email_token=AB6H3Z5UDXPFICI6572LQSLQMTNVTA5CNFSM4HEQ57QKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAFTYQI#issuecomment-537607233, or mute the thread https://github.com/notifications/unsubscribe-auth/AB6H3Z2GJZWOKAXPBV3IKB3QMTNVTANCNFSM4HEQ57QA .

lolz0r commented 1 year ago

Can you give an example of this?