IVirtualProps
interface
Performance
Props for virtualised list components — controls item height, the visible viewport height, and the animated scroll behaviour (duration and easing).
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.
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.
- itemHeightnumber | string
- Fixed height of each virtualised row — a number resolves to "Npx", or any valid CSS length.
- heightnumber | string
- Visible viewport height of the virtual scroller — constrains how many items are rendered.
- scrollDurationnumber300
- Animation duration in milliseconds for imperative scroll calls (e.g. scrollToIndex). Set to 0 to jump instantly.
- scrollEasingstring'easeInOutCubic'
- Easing function name forwarded to useGoTo (easeInOutCubic, easeOutQuart, …).
É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 IVirtualProps on a large dataset