You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working a dashboard that needs drag & drop widgets, resizeable. Interact.js seems to be good to our need, but I cannot find an example of how to implement resizable, can you help?
Thanks.
The text was updated successfully, but these errors were encountered:
interact('.resize').resizeable(true).on('resizemove',function(event){vartarget=event.target;// add the change in coords to the previous width of the target elementvarnewWidth=parseFloat(target.style.width)+event.dx,newHeight=parseFloat(target.style.height)+event.dy;// update the element's styletarget.style.width=newWidth+'px';target.style.height=newHeight+'px';target.textContent=newWidth+'×'+newHeight;});
I'm working a dashboard that needs drag & drop widgets, resizeable. Interact.js seems to be good to our need, but I cannot find an example of how to implement resizable, can you help?
Thanks.
The text was updated successfully, but these errors were encountered: