chevron_right Demos chevron_right Lit Template Node Style
Related demos
Book a live Demo

See yFiles in action

30 min • Online • No install required


For developers, PMs & tech leads

  • Quick-start walkthrough + a real integration example
  • Live Q&A with next-step recommendations

Prefer another tool over Zoom? Just say so when you book.

Opens our scheduling page with Zoom's booking widget embedded. Using it shares your data with Zoom under its Privacy Policy.

Vue Component Node Style Demo Vue Template Node Style Demo React Component Node Style Demo React JSX Component Style Demo
Demos Overview

See yFiles in action

30 min • Online • No install required


For developers, PMs & tech leads

Prefer another tool over Zoom? Just say so when you book.

Opens our scheduling page with Zoom's booking widget embedded. Using it shares your data with Zoom under its Privacy Policy.

Template String

SVG
HTML
Could not compile template string!

Tag Object

Could not parse the tag object!

Lit Template Node Style Demo

This demo presents the LitNodeStyle that leverages the powerful data binding and conditional rendering features of the Lit templating framework.

With this style, node visualizations are defined by SVG snippet rendering functions. These rendering functions are powered by the Lit template string technology, which makes it easy to componentize, create, and efficiently update SVG DOM snippets.

Things to Try

Change the render function of one or more nodes. Bind colors or text to properties in the tag. Then, apply the new template by pressing the button. Or modify the tag and see how the visualization changes.