ExpandButtonView with nested GLSP views #1463
Unanswered
umar-shabbir
asked this question in
Q&A
Replies: 1 comment
-
HI @umar-shabbir, I will try to come up with a short example implementation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The
ExpandButtonView
example in docs renders a static text "More Information" in the expanded part of this element. The code for this is also on client side, which is just a svg text.{node.expanded && ( <text x="50" y="45"> More information </text> )}
How to add a nested GLSP view/element in this expanded part of
ExpandButtonView
? For example, any custom element like TaskNode or anotherExpandButtonView
inside the content of the outerExpandButtonView
?I tried modifying the builder for
node:expandable
to add children elements but it seems to be incorrect way of nesting elements within the expanded portion ofExpandButtonView
, Can someone guide a proper way to implement it and what needs to be done on the client and server side?For illustration, I want this

Element 02
to be part of the expanded content.Beta Was this translation helpful? Give feedback.
All reactions