-
-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Feature Title
return a promise after view change
Feature Description
After changing the current view to "week" view, I should be able to scroll to an event.
Use Case
If we return a Promise object with the switch method, it can be very useful for others, they can perform other desired tasks when the operation is finished.
like :
const goToEvent = async () => {
await currentCal.value.view.switch('week', new Date());
currentCal.value.view.scrollToCurrentTime();
};
https://stackblitz.com/edit/vuecal5-events-qhepnrh4?file=src%2FApp.vue
joweste
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request