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.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

el
requis
IRippleHtmlElement
The DOM element carrying the _ripple internal state bag.
binding
requis
IRippleDirectiveBinding
Vue directive binding; value enables/disables the ripple and may carry { class, center, circle }; modifiers.center and modifiers.circle override the geometry.
wasEnabled
requis
boolean
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

typescript