Skip to content

[Feature] view change & scrollTo improvement #25

@n1crack

Description

@n1crack

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions