Open debasispanda opened 8 years ago
I think if all the blocks already come with the tag data-position would help to save the positions. I'm trying to do in this way, but the tag is only added when moving the block and it is removed from the others.
After some work I got the following result that worked for me:
onBlockDrop: function() { var position = $(this).attr('data-position'); var widget = $(this).attr('name'); $.getJSON(save_position_widget_url, {val:position, widget:widget} ).done(function(data){ //do something }); },
Thank you for sharing the nice plugin. I am using freewall in my project where we have requirement to place the tiles as per the user preference. Means allowing the user to drag and sort the tiles. So we are using the "data-position" value. But there are some challenges which is not giving proper result.