updateRipple
Commons
stable
Sync the v-ripple directive's internal state when its binding changes. Hides an active ripple when disabled and attaches or replaces the event listeners that trigger ripple animations.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- elrequisIRippleHtmlElement
- The DOM element carrying the _ripple internal state bag.
- bindingrequisIRippleDirectiveBinding
- Vue directive binding; value enables/disables the ripple and may carry { class, center, circle }; modifiers.center and modifiers.circle override the geometry.
- wasEnabledrequisboolean
- Whether the directive was enabled before this update. Prevents double-registration of listeners.
API
Valeur de retour
La valeur retournée par cet util.
- No return value. Mutates element listeners and _ripple state in place.
Usage
Exemples
Extraits de code prêts à coller.
Directive updated hook