Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Custom event for render finish #321

Open
micahlt opened this issue Jan 1, 2022 · 0 comments
Open

Custom event for render finish #321

micahlt opened this issue Jan 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@micahlt
Copy link

micahlt commented Jan 1, 2022

Is your feature request related to a problem? Please describe.
In my use case, I need to add target="_blank" attributes to all of the <a> elements in the <Markdown> component.

Describe the solution you'd like
It would be very helpful to fire a custom rendered event that would allow the parent component to know when the render is complete so that syntax could look like this:

<Markdown :source="source" @rendered="myFunction" />

Describe alternatives you've considered
Nothing as good as adding a custom event. I'm open to adding this feature in a pull request if that's an option.

@micahlt micahlt added the enhancement New feature or request label Jan 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant