Docs
Calendar
Plugins
Scroll Controller

Scroll controller

Take control over the scrolling in the week- and day view grids.

Install

npm i @schedule-x/scroll-controller

Usage

import { createScrollControllerPlugin } from '@schedule-x/scroll-controller'
 
const scrollController = createScrollControllerPlugin({
  initialScroll: '07:50'
})
 
const calendar = createCalendar(
  { /* calendar options */ },
  [scrollController]
)
calendar.render(document.getElementById('calendar'))
 
scrollController.scrollTo('04:00')
Last updated on

We use cookies for marketing purposes. By clicking "Accept", you consent to the use of all cookies. If you decline, we will only use functional cookies. You can read more about our cookie policy here.