lib/st_html/ruing/abstract_container.rb
#
# Setting :transparent => true makes this container act as a simple rendering 
# container that will have no influence on the name of the contained 
# elements.
# 
# Important note: it's not possible set a container transparent after 
# creation, because this property determines a behavior of the contained 
# items, so it would be possible to set transparent also a container that 
# already contains items, but in the latter case the items aren't updated
# accordingly. This could be handled resyncing sub-items recoursively but 
# this would be more complex, so for simplicity we set up thing in this way.
# Perhaps if needed in the future we will make things more flexible.
#
Setting :transparent => true makes this container act as a simple rendering
container that will have no influence on the name of the contained
elements.

Important note: it's not possible set a container transparent after
creation, because this property determines a behavior of the contained
items, so it would be possible to set transparent also a container that
already contains items, but in the latter case the items aren't updated
accordingly. This could be handled resyncing sub-items recoursively but
this would be more complex, so for simplicity we set up thing in this way.
Perhaps if needed in the future we will make things more flexible.
Setting : transparent = > true makes this container act as a simple rendering container that will have no influence on the name of the contained elements . Important note : it ' s not possible set a container transparent after creation because this property determines a behavior of the contained items so it would be possible to set transparent also a container that already contains items but in the latter case the items aren ' t updated accordingly . This could be handled resyncing sub - items recoursively but this would be more complex so for simplicity we set up thing in this way . Perhaps if needed in the future we will make things more flexible .
def unset_parental_relations item
        item.extend Behaviors::NotContained
        item.client_attributes[:parent] = {
            :item => nil
        }
        item.client_attributes.delete :parent
        if item.is_a? AbstractContainer
            item.items.each do |c|
                item.set_parental_relations c
            end
        end
    end
def unset_parental_relations item item . extend Behaviors :: NotContained item . client_attributes [ :parent ] = { :item => nil } item . client_attributes . delete :parent if item . is_a? AbstractContainer item . items . each do | c | item . set_parental_relations c end end end
Setting :transparent => true makes this container act as a simple rendering
container that will have no influence on the name of the contained
elements.
Setting : transparent = > true makes this container act as a simple rendering container that will have no influence on the name of the contained elements .
# removing Contained extensions # cut relation with parent # delete parental relation holder # when dealing with groups, let them update their children too
item
<not_specific>