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
Should be able to resize/drag widget and push other items #11
Comments
HI @nghiado , |
@tiberiuzuld Do we have any ETA for this? I believe this is the only missing feature to make it the best Angular2 lib for dashboard :-) |
Hi @nghiado and @DavidDecraene , About ETA: About this feature: In the 1.x version tried 2 times to implement it and abandoned because of the multiple issues it caused. Don't get me wrong I want to implement it and I like the idea of it but if it will cause issues and bugs is not going to happen. The issues:
Anyway after I finish the AOT:
Will be implemented. |
My reference would be this angular 1 version of gridster: I like what you have done so far, of the several angular 2 gridster conversions yours seems to be the most feature complete for me. |
Hi @DavidDecraene , |
@tiberiuzuld I think it should be up to developers who build the product to decide it's acceptable or not. We have a strong use case which allow user to add a new widget and drag them into dashboard anywhere they want during the add process. I think you can jut provide a config like enablePushing and let developers use it along with Compact Up, Compact Left, Swap Items Just one note on your comment about 'the widgets will lose the initial position', since we have cancelable drag/drop action, we should store the widgets position before dragging/pushing so we can restore them if needed when the action is cancelled. |
@nghiado I agree that developers should decide if they use the feature or not. Yes the feature will be enabled from config with default false. Currently when you drag/resize an widget, the initial position is stored only for that item. |
Thanks for the great job you did @tiberiuzuld , I think it will be perfect once the lib provides the "pushing" feature like in the demo link posted by @DavidDecraene. Without it users found it weird not having a visual feedback and knowing when you have to "drop" the item to push others. |
Great news ! This is good I I was about to implement something like the "gridster-item-content" one week ago and when I come back I see it is done :) On my side I had to implement somehow a visual "handler" for the drag that is used when gridster-item-content is implemented by your content so we have something displayed on hover event (same as resize handler) that helps the user to understand that things can be moved. I will try to push something clean on my branch so you can have a look if you are interested.. Regarding the feedback this demo is nice ! Perhaps displaying a grid should be an option ? I'm very looking forward to seeing this new features and enhancement, feel free to ask if you need some people to test them ! |
Hi guys, |
Wow thanks @tiberiuzuld ! I have updated with the 2.8.1 this is working great for a first release :) I see I have some strange behaviour, I need to put it in a simple template to make sure this is not my code, so I will be able to make some feedbacks ! |
Hi @tiberiuzuld, Again, assuming this was only implemented for angular 2 version? Thanks again for all your help. This is a great gridster framework. |
Hi @karanaditya993 , |
Can you point me in the direction of the file where this was implemented? Will try and recreate in angular 1 version. Thanks. |
GridsterPush.service.ts |
Thanks very much. |
Right now, I can't resize an item if there are no spaces around it.
The expected behavior is user should be able to resize any items regardless of spaces around it.
When no spaces around it, just push other items on the left/down as the original plugin does
http://dsmorse.github.io/gridster.js/demos/resize.html
The text was updated successfully, but these errors were encountered: