Am 05.08.2015 um 11:42 schrieb Iwan Vosloo <iwan@reahl.org>:
I'm not sure I can give a good answer to this. And I'm not sure it is a feasible use case to have visibility fully dynamic. Usually you create a component and the visibility of the elements should be defined by then.But it seems that visible: can only take a Boolean, which the description then retains for the lifetime of the description. The description in turn lives as long as the MAContainerComponent stays alive. So, I don't really understand how one can change the contents of the MAContainerComponent based on something like visible: on the description. (I thought magritteDynamicObject could help here, but magritteDynamicObject is deprecated in Magritte3.)
Moving stuff to the instance side opened the possibility to have more dynamic stuff that can access the instance but there is surely a lack of support for things like the one you describe. So not everything can be used dynamically. We need to decide which of these things need to be integrated into magritte.
Can you describe a more detailled use case why you would want to have dynamic visibility of elements?
-- Reahl, the Python only web framework: http://www.reahl.org