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

switch widget #88

Closed
lorenzopub opened this issue Mar 5, 2015 · 6 comments
Closed

switch widget #88

lorenzopub opened this issue Mar 5, 2015 · 6 comments

Comments

@lorenzopub
Copy link

hi troolee,

currently i'm using gridstack to build a dashboard. i will be interested to have an optional drag&drop functionnality for the entire grid to be able to switch 2 widgets , each one taking the size and positionning of the other one like this :

initial state of the grid :
[1] [2] [..3..] [4]
[...5..] [6] [..7..]

i would like to switch [..3..] and [6]

as a result of the drag and drop 👍

[1] [2] [..6..] [4]
[...5..] [3] [..7..]

cheers
lorenzo

@troolee troolee added this to the v0.2.4 milestone Mar 5, 2015
@troolee
Copy link
Member

troolee commented Mar 5, 2015

Hi Lorenzo, I think I can do this.

@lorenzopub
Copy link
Author

great !

@troolee
Copy link
Member

troolee commented Mar 5, 2015

I cannot promise it will be done right now, but it in 0.2.4 it will.

Right now I'm improving performance and stability of the library.

@lorenzopub
Copy link
Author

no problem.

i'm thinking that with this optional functionnality for the drag & drop, the behavior of the widget resizing should be also a little bit different.

the resizing of a widget should alterate the size of the widget close to it instead of moving it accordingly.

initial state of the grid :
[1] [2] [..3..] [4]
[...5..] [6] [..7..]

if i you would like to reduce widget [3] on the left & on the right,
grid should be in that state :
[1] [2..] [3] [..4]
[...5..] [6] [..7..]

@KrishnaPG
Copy link

+1 Switching positions would be a great feature (especially when the widgets are of different size and placed apart)

@radiolips
Copy link
Member

#149 has more information and also covers this topic. Closing, but will leave 149 open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants