Title: Draggable "snap-to-grid/element" possible? Post by: Curtis on June 12, 2012, 09:45:16 AM Hello.
I have a (hopefully) quick question. Does EasyUI override the snap-to-grid/element functionality found in the default jQuery UI draggable interaction? Any way to get it back, if so? Thanks, Curtis Reference: http://jqueryui.com/demos/draggable/#snap-to Title: Re: Draggable "snap-to-grid/element" possible? Post by: stworthy on June 13, 2012, 01:45:06 AM The 'snap-to-grid/element' is not built-in functionality in current version. The example below shows how to implement the 'snap-to-grid' functionality:
Code: <div id="dd" style="width:300px;height:300px;border:1px solid #ccc"></div> Code: $(function(){ Title: Re: Draggable "snap-to-grid/element" possible? Post by: Curtis on June 13, 2012, 09:51:34 AM Awesome and thanks.
I greatly appreciate it. |