Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to drag an event from one day view into an adjacent day view? #532

Closed
ghost opened this issue May 15, 2018 · 2 comments · Fixed by #589
Closed

How to drag an event from one day view into an adjacent day view? #532

ghost opened this issue May 15, 2018 · 2 comments · Fixed by #589

Comments

@ghost
Copy link

ghost commented May 15, 2018

Hi. Is it possible to drag an event out of one mwl-calendar-day-view and into an adjacent mwl-calendar-day-view? If so, how?

Thanks

p.s. Why multiple day views you ask? To support the partitioning of events (for the same day) into multiple columns, where each column represents the physical location of the calendar event.

@ghost
Copy link
Author

ghost commented May 24, 2018

The answer is yes, it is possible. By default, the mwl-calendar-day-view component does not allow dragging across the x-axis. However, it is possible to rewrite the component to achieve this, e.g.:

[dragAxis]="{x: dayEvent.event.draggable, y: dayEvent.event.draggable}"

@dwknippers
Copy link
Contributor

Perhaps this could be an option?

Something like:

@Input() eventWidth: number = 150;

That would be much nicer than rewriting the component to support this use case.

mattlewis92 added a commit that referenced this issue Jun 18, 2018
BREAKING CHANGE: if you were extending the day view component then the internal API has changed slightly and you may need to adjust your app

Closes #532
@mattlewis92 mattlewis92 mentioned this issue Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants