IIntersectDirectiveBinding
interface
Directives & Utilities
Typed directive binding for v-intersect — extends Vue's DirectiveBinding with a typed value (handler or handler+options) and once/quiet modifiers.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Héritage
Hérite de
Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- valueTObserveHandler | { handler: TObserveHandler, options?: IntersectionObserverInit }
- Directive binding value — a bare TObserveHandler callback, or an object pairing the handler with custom IntersectionObserverInit options (root, rootMargin, threshold).
- modifiersrequis{ once?: boolean quiet?: boolean }
- once: the observer disconnects after the first intersection; quiet: suppresses the initial callback call on mount.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Using the typed binding in the v-intersect directive hook