-
-
Notifications
You must be signed in to change notification settings - Fork 876
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
Allow events to be dragged and dropped #10
Comments
I need this feature in my project. When is this feature available for use, |
It's open source so completely limited by my spare time available... |
maybe we can help you ? |
That would be awesome! Happy to review a PR that adds this functionality. API wise it should replicate what's available in the ng1 version. The first thing to do is find or build a standalone drag and drop lib for angular 2 that has all the features required (AOT compatible, drop zones, validation, snap grids etc). Once that's done it should be pretty trivial to add this into this library.
|
Do you want to use ng2-dnd to do that ? or from scratch ? |
Looking at the issues for that lib it doesn't seem to be AOT compatible and lacks several features needed by this module. I'm
|
After giving it some more thought I've decided to just roll my own dnd directives to give the functionality that the calendar needs as there's quite a lot missing from the angular dnd library. I've created the repo here: https://github.com/mattlewis92/angular-draggable-droppable and implemented a basic draggable directive + created issue stubs for the rest of the needed features: https://github.com/mattlewis92/angular-draggable-droppable/issues Feel free to contribute! 😄 |
i have try an another plugin who maybe help, it's ng2 dragula ? have you try it ? |
I did look at dragula, unfortunately it doesn't have any support for snap grids. I made some good progress this weekend on building my own directive, I just need to implement a few extra features and then it should be good to go! |
Great news :) Thanks for all you do for the community 👯♂️ |
No problem, happy to help! 😃 |
Any update on the release date of this feature |
As say Jedi : Be patient :D, mattlewis92 create new repository to test this functionality |
I've built the low level directives to handle drag and drop: https://github.com/mattlewis92/angular-draggable-droppable It's now just a case of hooking up the calendar to use them. |
BREAKING CHANGE: A dependency on the `angular-draggable-droppable` library has been added. System.js users will need to add this to their config: ``` 'angular-draggable-droppable': 'npm:angular-draggable-droppable/dist/umd/angular-draggable-droppable.js' ``` First part of #10
Finally made some good progress with this today: https://github.com/mattlewis92/angular-calendar/tree/0.5.0 There are a few issues I've found with the drag and drop directive as I was implementing this that I need to fixed first, but all are pretty minor and shouldn't take long to fix. I'll aim to get them done today! :) |
I think I've ironed out all the bugs and I will cut a new release once I've finished the other issues in the 0.5.0 milestone. In the mean time if you want drag and drop today, you can install To use it add the |
Remaining items
The text was updated successfully, but these errors were encountered: