/utils/mobile
Export the mobile utility method.
- Source
Methods
(inner) mobile(setWidthInPx) → {Boolean}
The mobile utility method can be used to set the widthInPx module variable or check whether the window.innerWidth is less or equal the widthInPx variable.
Parameters:
Name | Type | Description |
---|---|---|
setWidthInPx | integer | Set widthInPx |
- Source
Returns:
Returns true if window.innerWidth is less than widthInPx
- Type:
- Boolean