Box component
Box component
This component represents the container that includes all other box
components.
It inherits from a SearchInterface component and therefore also supports all of its options.
Options
withAnalytics
Specifies if the box should automatically include an analytics
component.
If you already have one on the page, then it’s not added twice.
However, setting it to false
removes it from the page on initialization.
The default value is true
.
<div data-with-analytics="true"></div>
enableBoxStateHistory
Saves and reloads the Box
state when the page is closed and reopened.
This saves the current state of the current tab that’s selected.
If set to false
, the tab reverts to the default one at each page load.
If set to true
, each time you reload the page, the last tab that you selected will be automatically selected.
The default value is true
.
<div data-enable-box-state-history="true"></div>
Was this article useful?
Thanks for your feedback!