I saw a property called className in geometric outdoors component. What is its significance ?
Solved! Go to Solution.
Views
Replies
Total Likes
This is what you are referring to - its a property that belongs to a node of type wcm/mobile/components/page.
[img]className.png[/img]
This is referencing CSS class. Its used in the JSP logic as well:
String className = component.getProperties().get("className", "");
pageContext.setAttribute("className", StringEscapeUtils.escapeHtml4(className));
Then used in the <body > tag for style.
Views
Replies
Total Likes
What component are you referring to?
Views
Replies
Total Likes
This is basically a property used to apply CSS style dynamically !!
Views
Replies
Total Likes
There is a "page" and "page_mobile "component. That is the main template.
For page component the className is "page"
For page_mobile component the className is "page-mobile"
Is it used for CSS ?
Views
Replies
Total Likes
This is what you are referring to - its a property that belongs to a node of type wcm/mobile/components/page.
[img]className.png[/img]
This is referencing CSS class. Its used in the JSP logic as well:
String className = component.getProperties().get("className", "");
pageContext.setAttribute("className", StringEscapeUtils.escapeHtml4(className));
Then used in the <body > tag for style.
Views
Replies
Total Likes