jQuery UI droppable, draggable, resizeable and snap to grid -
i have following structure:
<div id="grid"> <div class="columns"></div> <div class="columns"></div> <div class="columns"></div> ... </div> <div id="assets"> <div class="assets" id="asset1"></div> <div class="assets" id="asset2"></div> ... </div>
and want make each asset droppable, draggable, resizable , snapping each column positioned underneath assets. jquery ui draggable doesn't have snap grid out of box i'm trying adapt suit needs, snap of resizable snaps grid of pixel values (as far know anyway). there way use
$(".assets").resizeable({ grid: $(".columns") }); ?
i've tried , doesn't work. i've found this: https://github.com/polomoshnov/jquery-ui-resizable-snap-extension
but doesn't seems work whit 2 different elements (one grid , other draggable).
any ideas on how make work?
thanks
Comments
Post a Comment