How to hide a node in layout? #889
-
|
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? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Have you tried setting style display to none ? You will need to invalid + compute the layout whenever you hide the layout |
Beta Was this translation helpful? Give feedback.
Have you tried setting style display to none ? You will need to invalid + compute the layout whenever you hide the layout