Web components inside Formio
Hi, We are in need to put web components (example: https://github.com/mdn/web-components-examples) inside Formio. This can be accomplished by creating a custom component which contains this web component if I am not wrong. Do we have any documentation by which we can accomplish this functionality (how to register webcomponent inside Formio etc)?
Hello @cskr11,
Here you go: https://formio.github.io/formio.js/app/examples/customcomponent.html
I hope that this helps.
Did someone have a solution for that?. Ok after some testing, it appears that it can be easily added through render method. For example(react) when you are extending component you can override render method:
render() { return ( <div> <hello-button>Click me</hello-button> </div> ); }
We're currently addressing a backlog of GitHub issues. Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!