-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat: add form-js extensions blogpost #171
Conversation
88ecf73
to
7b35b9f
Compare
7b35b9f
to
ce921c1
Compare
The example is still pending to be merged, but feel free to already review this post 👍 |
Wow, this is so cool! I think this blog post could be published as is. |
|
||
## Plugging everything together | ||
|
||
You can plug your custom modules into the different form-js components as `viewerAdditionalModules` and `editorAdditionalModules`. With the latest release, we also added the `additionalModules` option that allows you to provide extensions to both simultaneously, for example, the renderer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we give an example of viewerAdditionalModules
too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have to think of a proper use case. In which case you'd like to have an extension for the viewer only, but not for the editor? In terms of a custom renderer you have to add to both anyways.
One example that comes into my mind is if you want to have a different rendering in both components. We do that for the text
component, where it looks different in viewer and editor (placeholder only). Maybe that could be something to showcase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so good!
Really nice one! 👏 |
Closes #170
This adds a dedicated blog post about form-js custom components.
Depends on https://github.com/camunda/team-hto/issues/372
Depends on bpmn-io/form-js-examples#7