Custom view #878
-
Hi, Could please help me to define a new shape design in the client side? Thank you in advance for taking the time to read my question. Ali |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @NourEldin-Ali, sorry for the late response. I would recommend to have a look at the GLSP website documentation. The In a nutshell, each model element (type) gets associated with a For your example I would recommend to split this into three components:
|
Beta Was this translation helpful? Give feedback.
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
. TheView
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.
SLabel
renderingPrerenderedEleme…