Fields
-
<static, constant> FRAMEWORK_QUERY_KEY :string
-
In the jet sass files there are variables for responsive queries like $responsiveQuerySmallUp, $responsiveQuerySmallOnly, $responsiveQueryMediumUp, etc.
These constants are used to identify these queries.
- Source:
Properties:
Name Type Default Description SM_UPstring sm-up matches small and up screens MD_UPstring md-up matches medium and up screens LG_UPstring lg-up matches large and up screens XL_UPstring xl-up matches extra large and up screens XXL_UPstring xxl-up matches xxl and up screens SM_ONLYstring sm-only matches small screens only MD_ONLYstring md-only matches medium screens only LG_ONLYstring lg-only matches large screens only XL_ONLYstring xl-only matches extra large screens only MD_DOWNstring md-down matches medium and down screens LG_DOWNstring lg-down matches large and down screens XL_DOWNstring xl-down matches extra large and down screens HIGH_RESOLUTIONstring high-resolution matches high resolution screems -
<static, constant> SCREEN_RANGE :string
-
In the jet sass files there are variables for responsive screen sizes, these look something like
- $screenSmallRange: 0, 767px;
- $screenMediumRange: 768px, 1023px;
- $screenLargeRange: 1024px, 1279px;
- $screenXlargeRange: 1280px, $appContentMaxWidth;
These constants are used to identify these ranges.
- Source:
Properties:
Name Type Default SMstring sm MDstring md LGstring lg XLstring xl XXLstring xxl
Methods
-
<static> compare(size1, size2) → {number}
-
Parameters:
Name Type Description size1oj.ResponsiveUtils.SCREEN_RANGE one of the screen size constants, for example oj.ResponsiveUtils.SCREEN_RANGE.MD size2oj.ResponsiveUtils.SCREEN_RANGE one of the screen size constants, for example oj.ResponsiveUtils.SCREEN_RANGE.LG - Source:
Returns:
a negative integer if the first argument is less than the second. Zero if the two are equal. 1 or greater if the first argument is more than the second.- Type
- number
-
<static> getFrameworkQuery(frameworkQueryKey) → {string|null}
-
Get a framweork (built in) media query
Parameters:
Name Type Description frameworkQueryKeyoj.ResponsiveUtils.FRAMEWORK_QUERY_KEY one of the FRAMEWORK_QUERY_KEY constants, for example oj.ResponsiveUtils.FRAMEWORK_QUERY_KEY.MD_UP - Source:
Returns:
the media query to use for the framework query key passed in- Type
- string | null