Skip to content
Discussion options

You must be logged in to vote

Hi @NourEldin-Ali,

sorry for the late response. I would recommend to have a look at the GLSP website documentation. The Rendering & Styling Section describes how you can configure new model elements and their rendered representation on the client side.

In a nutshell, each model element (type) gets associated with a View. The View is responsible for rendering i.e. creating the corresponding SVG element for a given model element.

For your example I would recommend to split this into three components:
A node that contains an icon and a label element.

  • For the label element you should be able to reuse the default SLabel rendering
  • For the icon element you could use the default PrerenderedEleme…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NourEldin-Ali
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants