Hi,
I don't have much experience of using blocks with placeholders.
If I create a block with place holders and pull it onto a screen or place it within another block is all of that layout editable. I'm guessing it isn't.
Is the idea to use them for regular layouts e.g. if the header and footer sections are the same on each page of the app we should use place holders for that?
Also I understand that the .ph class means that if the .ph is empty the placeholder container isn't rendered. Does it still form part of the DOM though?
Also if a placeholder has an empty container placed within it what happens then? Is it still treated as an empty placeholder?
Is there any training on how to use placeholder effectively that someone can point me to?
Thanks
Hi @JayPea,
You can find most of your answers here.
Also, no, when .ph is empty it also doesn't form in the DOM.
In OutSystems, if a placeholder has an empty container placed within it, it is generally not considered an empty placeholder anymore. The placeholder is treated as containing content because the container, even if empty, is still a widget that occupies space and can potentially hold content or be styled.
Thanks for this explanation.
I guess empty containers would still appear in the DOM as an empty div. So therefore if a .ph has a container then the div will show in the DOM in the usual way.
When Placeholder with .ph class is defined on a screen - It actually hides the placeholders in the screen, if it does not have any content inside it.
Refer this document to get knowlege about placeholder.Doc
Jothikarthika