Open jdevillard opened 3 years ago
Hello, did you experiment with embedding the components in a web app? I am trying really hard to embed the designer in an angular app, by generating angular wrappers using stenciljs (https://stenciljs.com/docs/angular) but things are getting very complicated. Any suggestion would be great about this. Thank you!
This question comes up many time, so I've just publish a sample here :
https://github.com/jdevillard/ElsaWorkflowDashboard-Angular
and I think we'll try to add the wrapper in the packaging to get the integration easier.
Thank you @jdevillard ! I tried to follow your example and it worked! (I already followed a similar path, but i was missing several details).
What I found is:
@stencil/router
, because it is not included in the dependencies (i forced the @1.0.1
version since it is the one reported in the elsa package.json)[attr.name]
syntax, es. <elsa-studio-root [attr.server-url]="serverUrl" monaco-lib-path="assets/monaco">
As a developper, I would like to integrate the designer and other part of the Web Components inside my application.
A discussion around Embedding designer already exist #800 but this issue is more to provide and think about what api/properties could be useful to expose for allowing interaction with outside (React/Angular/Blazor, etc..)
Here is the props I see for the beginning about ElsaWorkflowDefinitionEditorScreen Component :
feel free to add some ideas to help on usecase possibility and allow dev to prioritize this as best