mariordev / mailtoui

A simple way to enhance your mailto links with a convenient user interface.
https://mailtoui.com
MIT License
192 stars 12 forks source link

Trigger manually #2

Closed SteveEdson closed 5 years ago

SteveEdson commented 5 years ago

I'd be great if there was a way to trigger the function manually, I'm using Vue and I think mailtoui triggers itself at load. Any data that is added afterwards isn't being picked up by mailtoui.

Also, proper npm support would be great, ie being able to import mailtoui from 'mailtoui'; etc.

Thanks though, this is great!

mariordev commented 5 years ago

Yes, mailtoui does trigger itself at load. This is to make it really easy for folks to just drop in the script on the page. I'll have to figure out a way to keep it that way, while allowing a manual way of triggering it. I'll look into both of those issues. Thanks!

mariordev commented 5 years ago

v0.2.0 provides proper npm support and the ability to run MailtoUI manually. It plays nice with Vue.js. Please check out docs for details.