Closed chakanish closed 3 years ago
You can:
generate an overlay modal
- with HTML tag (e.g. <my-modal></my-modal>
) and it will just show up when you will add MyHostedSrc.js
to the pageMyHostedSrc.js
add <my-modal></my-modal>
to BODY and it will just show up
var element = document.createElement('my-modal');
document.body.appendChild(element);
Feel free to ask more questions.
Hi @karol-f
Thanks again for your prompt response. I managed to get it done by writing a javascript wrapper code on top of the element before I saw your response where I used the document.createElement approach.
I will try adding the tags to the generated js file again. Thanks again.
Cheers!!
Hi
I had a requirement in which I am generating an overlay modal and exporting via vue-custom-element.
However I want the modal to appear whenever the script is included in the target html page without the need to add any tags. So I just want to use the tag and the modal should appear.
Is this possible?
Any help is highly appreciated.
Regards, Anish.