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

Can add widget function parse attribute #323

Open bedomon opened 10 years ago

bedomon commented 10 years ago

When we add widget on initialization, we can use data-attribute like data-col, data-row, max-sizex... to tell gridster where to put the widget.

It could be great that the add_widget function can take only the html param and the function parse the html for the attribute to put the widget on the good place.