isRippleEnabled
Commons
stable
Type guard that returns true when the ripple effect should be active: when the value is undefined (default-on) or any truthy value. Mirrors isHoverEnabled for the ripple directive.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- valuerequisany
- The raw directive binding value. undefined means the directive was applied without a value and ripple is enabled by default; any falsy non-undefined value disables the ripple.
API
Valeur de retour
La valeur retournée par cet util.
- true when ripple is enabled (value is undefined or truthy), narrowing the type to true. false otherwise.
Usage
Exemples
Extraits de code prêts à coller.
Checking ripple state from a directive binding