Get the current breakpoint for medium screen size.
If it was not explicitly set by ResponsiveComponents.setMediumScreenWidth, the default value is 800
.
Return the current responsive mode.
Get the current breakpoint for small screen size.
If it was not explicitly set by ResponsiveComponents.setSmallScreenWidth, the default value is 480
.
Return true if the current screen size is larger than the current breakpoint set for medium and small.
Return true if the current screen size is smaller than the current breakpoint set for medium screen width.
Return true if the current screen size is smaller than the current breakpoint set for small screen width.
Set the breakpoint for medium screen size
Set the breakpoint for small screen size.
This class serves as a way to get and set the different screen size breakpoints for the interface.
By setting those, you can impact, amongst others, the Facet's, Tab's or the ResultList's behaviour.
For example, the Facet components of your interface will switch to a dropdown menu when the screen size reaches 800px or less.
You could modify this value using
this
callsNormally, you would interact with this class using the instance bound to SearchInterface.responsiveComponents