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

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Inheritance

Extends

Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.

API

Properties

Every property declared by this interface, with its type, optionality and default.

value
TObserveHandler | { handler: TObserveHandler, options?: IntersectionObserverInit }
Directive binding value — a bare TObserveHandler callback, or an object pairing the handler with custom IntersectionObserverInit options (root, rootMargin, threshold).
modifiers
required
{ once?: boolean quiet?: boolean }
once: the observer disconnects after the first intersection; quiet: suppresses the initial callback call on mount.

Usage

Examples

Ready-to-paste code snippets using this interface.

Using the typed binding in the v-intersect directive hook

typescript