-
Notifications
You must be signed in to change notification settings - Fork 23
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
The event dragging between the dates is not working #1
Comments
Hi, will try to look at it, but I wont promise anything because I've got very limited time these days. Any help to get this working is welcomed! |
Hii, |
Hi all! I have the same problem: I also want to drag the event from one day to another and it doesn't work... |
Hi All was anyone able to get this right? @diegofsza If you could give me some pointers as to where to start I will complete it and add to the code base. I have to get it working irrespective. Any help you can offer will just shorten the dev time for me. Regards :) |
hi All , <iq-calendar-week-hours-view *ngSwitchCase="'week'" |
Would you mind posting your full code? I'm a bit new to this plugin so not sure what you posted needs to be amended to function. |
Hi @patrickchoi , // you have the choice to custumize (display the information you want ) your template the way you want , for me i did this
then i called it with the input [eventTemplate] like this :
In typeScript i did the following : viewDate: Date = new Date(); events: CalendarEvent[] = [ eventTimesChanged({ event, newStart, newEnd }: any): void {
Hope it help :). |
Thanks for the quick reply! I did try out the code, but now the events cannot be dragged at all. The cursor does change to the move icon but nothing happens when I try to drag it around. Are there any additional imports needed? |
Did you import DragAndDropModule ? if you didn't you have to add it into your @NgModule Imports import { DragAndDropModule } from 'angular-draggable-droppable'; |
I have done this now with no luck. The behaviour is very odd. Sometimes I can drag the element, but it doesn't work most of the time. I can see in the console that the drag is being registered but the UI doesn't do anything. |
Can you show me your ng-template code ? |
I have tried to keep it as basic as possible from your snippet. Don't know if it makes a difference but I'm on Angular 6.0.5.
|
i did it with your template and it work fine , you have to add this.refresh.next(); in your eventTimesChanged function otherwise it won't work. |
Yes, the next() call is in the eventTimesChanged function, still no dice |
in [dragAxis]="{x: dayEvent.event.draggable, y:dayEvent.event.draggable}" |
Yes, it looks like this:
If I use the custom template example from: https://mattlewis92.github.io/angular-calendar/#/custom-templates
This can be dragged but only within the day. |
@patrickchoi I tried your month event template but when i drag and drop an event more than once, the event is moving 30min each time, not placing where I dropped. Does it happened to you? |
When I can drag it (and it’s very hard to do so) I can’t tell where it’s
going to drop
…On Wed, 25 Jul 2018 at 9:40 PM, victor-theoption ***@***.***> wrote:
@patrickchoi <https://github.com/patrickchoi> I tried your month event
template but when i drag and drop an event more than once, the event is
moving 30min each time, not placing where I dropped. Does it happened to
you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEMlFJilHTO8_MheqpVsKBv-ya6PJsbIks5uKHVAgaJpZM4RSwB8>
.
|
Was this ever resolved? I'm running into a problem, when the event is dragged onto another day it just just disappears under the day column. |
I never got this working :(
…On 28 Aug 2018, 3:42 AM +0800, mvaljento ***@***.***>, wrote:
Was this ever resolved? I'm running into a problem, when the event is dragged onto another day it just just disappears under the day column.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
If it helps, I made my own event template with this structure, but for this project we need to rewrite some part of the angular-calendar framework to work, and it doesn't work at 100%.
and at the angular-calendar-week-hours component i just add [eventTemplate]="customDayEvent"
|
Okay, thank you very much guys. I think for this project I'm just going to give up the drag'n'drop functionality and implement something more simple. Maybe have to look at other calendar components in the future. |
Hi,
I have implemented the code and its work well. I tried dragging the event from one day to other but it doenst work can you please help in this
The text was updated successfully, but these errors were encountered: