Checks the viewport configuration of the Area agains the current viewport. Only the window-width is tested to determine whether the Area should be displayed or not.

If the parameter is a DiviAreaItem, the area.getData("onDEVICE") flags are used to determine the visibility state per device. When the parameter is an array, it is supposed to have 3 boolean items: [onDesktop, onTablet, onPhone]


area DiviAreaItem|array, required
The Area, or viewport configuration to test.
The configuration array needs three elemens [onDesktop, onTablet, onMobile]


Returns true when the Area should be displayed on the current viewport.


No notes

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Get in touch with us