Newer Version Available

This content describes an older version of this product. View Latest

Step 6: Add Configuration Properties to the Theme Layout

Add an option that lets admins to hide the new search component completely in Experience Builder.
In the theme layout component, add the following attribute.
In the markup, wrap the entire search column with an aura:if expression. This expression is reactive, so when the attribute gets updated, the component rerenders.
Add the design attribute.

In Experience Builder, when you edit the Condensed Theme Layout, you now have an option to show or hide the search component. Deselecting the checkbox causes the page to rerender and hide the search component.Theme Layout area with new checkbox