search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

onScroll callback doesn't work

Asked by Val
2 months ago.

I'd like to something on vertical scroll but my callback didn't called

Answer posted by Dan Letecky [DayPilot]
2 months ago.

The onScroll event is only fired if dynamic event loading is enabled (https://doc.daypilot.org/scheduler/dynamic-event-loading/).

You can hook the "scroll" event directly like this:

dp.nav.scroll.addEventListener("scroll", function(ev) {
  // your code here
});
</pre.
Comment posted by Val
2 months ago.

i can have access to dp via "this" into some method. So, what method is best place for do it ?

New Reply
This reply is
Your name (optional):