Open martin-schaefer opened 6 months ago
Thank you! Great that you shared this, Mermaid is really good library. Also, using the attach event is good approach to lazy load when needed.
If you haven't already, you can also share tips at vaadin.com/forum/tag/i-made-this
I had a hard time making mermaid.js run with Vaadin. Neither
@NpmPackage
nor@JsModule
worked but with vaadin-js-loader it works and that's why I just wantet to drop the solution here.The code below will load and kick in mermaid so it will render all diagrams on
<pre>/<div>
elements withclass: "mermaid"
.Thanks for this little gem!