AshesOfOwls / jquery.shapeshift

A dynamic grid system with drag and drop functionality.
http://ashesofowls.github.com/jquery.shapeshift/
MIT License
1.67k stars 311 forks source link

Is there any event for getting dropped element #119

Closed rakeshmakam closed 9 years ago

rakeshmakam commented 9 years ago

$(".feeds-content").shapeshift({ dragClone: false, enableDrag: true, enableResize: false, enableAutoHeight: true, gutterX: 10, gutterY: 10, paddingX: 0, paddingY: 0, });

I tried this but not working

$('.feeds-content').on('ss-event-dropped', function (e, selected) { console.log($(selected).attr('id')) });

HaraldWalker commented 9 years ago

ss-event-dropped ?

What are you dropping from where? According to the API documentation you might be looking for ss-added or ss-rearranged. https://github.com/McPants/jquery.shapeshift/wiki/2.0-api-documentation

rakeshmakam commented 9 years ago

Thanks a lot I got the event