How to hide a node in layout? #889
Answered
by
triniwiz
linrongbin16
asked this question in
Q&A
|
Hi, here is my question: A parent node A, has 3 children nodes B,C,D. At a time, A only shows B and C inside it. In another time, A only shows D. So I have to hide D when displaying B+C, and hide B+C when displaying D. Guess one solution is using "insert_child"/"remove_child" to temporarily remove the child node and insert it back. But I still wonder if there's any other solutions such as using something like "z-index" or "hidden" properties to hide it? |
Answered by
triniwiz
Dec 1, 2025
Replies: 1 comment
|
Have you tried setting style display to none ? You will need to invalid + compute the layout whenever you hide the layout |
0 replies
Answer selected by
linrongbin16
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you tried setting style display to none ? You will need to invalid + compute the layout whenever you hide the layout