ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.03k stars 1.2k forks source link

Exchange widgets from one gridster grid to a different gridster grid and vice versa #332

Closed davidpelayo closed 10 years ago

davidpelayo commented 10 years ago

It would be nice Gridster would support the developer to exchange widgets from two existing gridsters on the DOM.

Like this, you can have two grids initialised with different set of widgets (and coloured, if wanted), and you would be moving a widget from one grid to the other, or vice versa.

From what I've been seeing, there is no way to support these kind of behaviours using the built-in library methods.

tkorkalainen commented 10 years ago

This is something I would also like to see in a future release.

Superdrac commented 10 years ago

I think it should be possible with the drag & drop jquery method implementation. For exemple, when you press "ctrl" and that you dragg a gridster widget, you are able to move it onto another grid. On drop event, you call remove widget on the first grid and you call add_widget on the new grid, with all the widget properties.

Sure it's possible to make it by this way.

vieron commented 10 years ago

Duplicate of #68