In this snippet, DHX demonstrates how to alternate between attaching a component and attaching HTML to the SAME LAYOUT CELL. My question is what happens to the previously attached component when an ‘attachHTML’ is evoked? Does it ‘detach’ or does it remain in memory? I alternated between attaching the component and attaching HTML about 10 times just to see if I could determine the answer but it didn’t become apparent (at least to me).
I ask because v8 offers a Layout ‘detach’ method but prior to that there was no way to detach a component. I have v7 and I would like to better understand what happens when a ‘second’ component is attached to the SAME LAYOUT CELL. Does it overwrite the previous attach or is it left?