You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the docs it's mentioned that options.events is available on
element, jquery interfaces only
Why is it not available on linkify-string for example. I think I have a valid use-case where this might be needed:
I have plain text input (simple chat messages), of which all but one type of urls should be transformed according to the default settings. For one specific url however, I do want a href set, but I also want to set an event listener, so I can decide for that specfic URL what to do exactly on clicking it. More specific, for example, I want to actually call vue.$router.push() when clicking this a.href element, so I can mimick the behaviour of a <router-link> element.
Is this at all possible with the current API?
The text was updated successfully, but these errors were encountered:
In the docs it's mentioned that
options.events
is available onWhy is it not available on
linkify-string
for example. I think I have a valid use-case where this might be needed:I have plain text input (simple chat messages), of which all but one type of urls should be transformed according to the default settings. For one specific url however, I do want a
href
set, but I also want to set an event listener, so I can decide for that specfic URL what to do exactly on clicking it. More specific, for example, I want to actually callvue.$router.push()
when clicking thisa.href
element, so I can mimick the behaviour of a<router-link>
element.Is this at all possible with the current API?
The text was updated successfully, but these errors were encountered: