|[E4AP] Hiding Ui Elements [message #915604]
||Mon, 17 September 2012 12:10
| Christoph Keimel
Registered: December 2010
From reading Bug 372211 I understand, that the attribute toBeRendered should be used to hide UIElements. I played with this and found out that setting toBeRendered = false has different results for different parts of the model:
a) Used on a Part, PartStack, PartSash it will destroy the element and remove it from the model
b) Used on a HandledMenuItem or HandledToolItem it will hide the element but leave it in the model
This inconsistency makes it difficult to work with persisted models. What is the desired behaviour?
I wanted to hide ui elements without removing them from the model, so I can show/remove elements based on user settings and/or security credentials. Of course this implies, that I would also like to be able to reactivate an element. Is using toBeRendered the best practise in this case?
[Updated on: Mon, 17 September 2012 12:10]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.04843 seconds