Skip to content

Advice for which elements to use to achieve a design (GNode, GLabel, GCompartment, GPort) #736

Discussion options

You must be logged in to vote

Hi @rileydanejohnston, as you have probably guessed there is no single, one way to properly represent the UI through the graphical model. In general, however, I'd recommend using compartments to group elements that should be layouted together.

For your use case, I believe that the client auto-layouting (e.g., vbox) may not be able to handle the positioning of the ports out of the box but if you provide the layouting/positioning manually (either from the server or in the client), it should definitely work. Regarding the grouping, it is really up to you but based on your colors and "semantics" a label-port-pairing makes the most sense to me as the positioning of the label depends on the pos…

Replies: 1 comment

Comment options

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