The cwrapProperty directive is used to pass properties through the object model to children. This allows for dynamic and flexible property management, ensuring that child elements can inherit and utilize properties defined at higher levels in the object hierarchy.
Pass property:
{ "element": "cwrap-template", "text": "cwrapTemplate[body(documentationFocus=cwrapOmit,homeFocus=focus,aDocumentationDisplay=flex,hamburgerNavDisplay=none)]" }
Get property:
{ "element": "img", "mediaQueries": [ { "query": "max-width: 1024px", "style": "display: cwrapProperty[aDocumentationDisplay=none]; margin-left: auto;" } ], "style": "display: flex; margin-inline: auto; margin-top: 2em; max-width: 120px;", "attributes": { "alt": "hero logo", "src": "https://villager88.github.io/cwrap-framework/static/images/android-chrome-512x512alpha.png" } }
The default value is defined after the '=' mark.