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.04k stars 1.2k forks source link

Help me understand remove_widget #428

Open totobih opened 10 years ago

totobih commented 10 years ago

Hi

I got a small problem, I started using gridster today :) My requirements are as following:

Reality:

This is the code I use to remove the widget: gridster.$el .on('click', 'li header a', function () { var currentWdg = $(this).closest('li'); gridster.remove_widget(currentWdg, false); })

Any ideas?

Kind regards Toto

bondt commented 9 years ago

Did you find a solution for this or could you provide some example code?