IScrollArguments

interface
Scroll

Arguments bag passed into scroll-behaviour handler functions. Provides a reactive ref indicating whether the target element can currently scroll, allowing behaviours to guard against no-op updates.

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.

typescript

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.

canScroll
Readonly<Ref<boolean>>
Reactive flag set to true when the scroll target has scrollable overflow. Behaviours should read this before mutating layout.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Using IScrollArguments in a custom scroll behaviour

typescript