formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

Web components inside Formio

Open cskr11 opened this issue 5 years ago • 2 comments

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)?

cskr11 avatar Oct 12 '20 13:10 cskr11

Hello @cskr11,

Here you go: https://formio.github.io/formio.js/app/examples/customcomponent.html

I hope that this helps.

wag110894 avatar Oct 12 '20 13:10 wag110894

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> ); }

DamianSoltys avatar Jun 03 '22 14:06 DamianSoltys

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!

olgabann avatar Feb 07 '24 14:02 olgabann