You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
CaerusKaru edited this page Nov 28, 2018
·
3 revisions
The fxHide directive allows developers to dynamically and/or responsively show/hide the hosting element. The fxHide
logic defaults to hiding an element.
API
Flex-Layout supports STATIC API for responsive layouts using the API without.<xxx> alias suffixes:
fxShow, fxHide, etc. These values of these directives are used (and styles applied) regardless of the viewport size.
These static rules can be specifically overridden by a registered responsive API use (see below).
Flex-Layout provides a RESPONSIVE API for dynamic adaptive layouts. This is simply using the the static API with
mediaQuery alias suffixes.
e.g.
fxHide.lg, etc.
fxShow.gt-sm,
Using fxShow & fxHide
fxHide (without a value) means "display:none"
fxShow (without a value) means use the origin display style value
fxHide="false" means use the original display value (should no longer be hidden)
fxShow="false" means "display:none" and hide it.
fxHide is the inverse of fxShow
Using Responsive API
When a mediaQuery range activates, the directive instances will be notified. If the current activate mediaQuery range
(and its associated alias) are not used, then the static API value is restored as the fallback value.
The fallback solution uses a largest_range-to-smallest_range search algorithm. Consider the following: