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

Vue - Accessing calendar functions

Asked by Sami
2 years ago.

https://doc.daypilot.org/calendar/vue-js/
I'm using the example from above.

https://api.daypilot.org/daypilot-calendar-scrolltohour/
I would like to use the above method to scroll the calendar to the 12th hour of the day.

I thought I might need to use `this.calendar.scrollToHour(12)`, however I get an error that it is not a function.

Interestingly, from the VueJS example, `this.calendar.message("Welcome!")` also throws an error:
[Vue warn]: Error in mounted hook: "TypeError: this.calendar.message is not a function"

What is the proper way to use scrollToHour with Vue?

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

It looks like you are using the open-source Lite version which includes only a subset of features.

The scrollToHour() and message() methods are only available in the Pro version at the moment.

See also the feature overview (and comparison):
https://javascript.daypilot.org/feature-matrix/

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.