ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Can i use vue component in html field?


i want to create a component in HTML field like roles in user … the component is already exist in vue …
can i use it in doctype ?>>
how ?
if there is example please share ?


Out of the box, no.

Theoretically, it should be possible. To use a Vue component, you need a Vue instance running on the page you want to use a Vue component for. You can modify your page script to create a Vue instance on that page and bind it to a node in the document tree for that page.

Sorry, I can’t give you a concrete Vue example, since I only used an HTML filed to implement a homebrewn vanilla JS hack for a Form page.