htz-collapsibles/isCollapsible

Module: htz-collapsibles/isCollapsible

(private) (require("htz-collapsibles/isCollapsible"))(elem, activeBps) → {Bollean}

Evaluate if an element is collapsible at the current breakpoint based on values specified in the data-collapsible-bps attribute.

Parameters
Name Type Description
elem HTMLElement

The element to evalute.

activeBps Object

A JSON-like object extracted from CSS, declaring if a given breakpoint is currently active or inactive.

Returns
  • Indicates if an element is currently collapsible.
Type
Bollean