The v-scroll
directive allows you to provide callbacks when the window, specified target or element itself (with .self
modifier) is scrolled.
The default behavior is to bind to the window. If no additional configuration options are needed, you can simply pass your callback function.
간단한 예재부터 복잡한 예제까지 아래를 참고해서 앱 개발을 시작해 보세요.
더 자세한 설정을 위해서, 타겟을 스크롤 이벤트 리스너와 연결할 수 있습니다.
v-scroll
targets the window
by default but can also watch the element it's being bound to. In the following example we use the self modifier, v-scroll.self
, to watch the v-card
element specifically. This causes the method onScroll
to invoke as you scroll the card contents; incrementing the counter.
Caught a mistake or want to contribute to the documentation?
Edit Layout
on GitHub!