-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demo custom form components #106
Comments
A basic demo is available via https://106-custom-form-components--camunda-form-playground.netlify.app/
This example extension can be used as a reference (use bundled files in the This includes some "hacks" to make it work for demo purposes, as of
|
This is interesting! To better understand the integration
Am I correct with this assumption? |
Related to (and supporting) the de-duplication effort we plan to work on https://github.com/bpmn-io/internal-docs/issues/819 at the core. |
This is exactly how it works 👍 Note that I (mis)used the playground here to demo something fast (point 2); this is not necessarily what we are going to build. However I simply re-use existing plugin mechanism of the Desktop Modeler, as it just works 🙂 @christian-konrad wants to create an epic about further integrating custom form elements in Modelers + Tasklist. This demo is more to showcase the upcoming core features (point 1). |
Some examples what one can build with the demo (sneak peeks from @christian-konrad) Bildschirmaufnahme.2023-09-22.um.09.42.58.mov |
Demo was built, this issue was achieved. |
is the functionality to add custom form elements via upload js file is now available for use in 1.5.0-alpha.0 version? |
@jenishPaladiya-TGS Unfortunately, the upload function was only for demo purposes and won't be included in form-js or form-playground - also due to security reasons as you can basically inject anything via this upload. |
Thanks for confirmation For this 1.5.0-alpha.0 version can i able to create custom elements like (Upload files , ratings , Third party grid , signature pad). |
Depending on how your custom components should work, it should be completely possible to build them with the latest version. For more questions please head over to our forum where you will find people to assist you 👍 |
In case you have any feedback / feature request, feel free to create an issue. |
okay thanks for confirmation I have React component (e.g. AGGrid) , can we add react component with all hooks support (e.g. useState, useEffect etc) as a custom element? I had tried to implement but getting below exception This is a code of my component
by this im rendering that component as a custom element
and getting below exception
if i revert the component code to this (Like simply remove UseState hook from component)
Then also giving exception.
|
This looks like a preact duplication error to me, preact has to be included only once. Cf. to our example on how to properly deduplicate preact: https://github.com/bpmn-io/form-js-examples/blob/master/custom-components/webpack.config.js Requoting to what I mention above
We want to keep our issues clean. Thanks for your understanding! |
What should we do?
Create an easy way to demo and test custom form components.
Why should we do it?
Related to bpmn-io/form-js#123
The text was updated successfully, but these errors were encountered: