forked from gridstack/gridstack.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgridstack.jQueryUI.min.js
More file actions
2 lines (2 loc) · 1.97 KB
/
Copy pathgridstack.jQueryUI.min.js
File metadata and controls
2 lines (2 loc) · 1.97 KB
1
2
!function(e){if("function"==typeof define&&define.amd)define(["jquery","lodash","gridstack","exports","jquery-ui/data","jquery-ui/disable-selection","jquery-ui/focusable","jquery-ui/form","jquery-ui/ie","jquery-ui/keycode","jquery-ui/labels","jquery-ui/jquery-1-7","jquery-ui/plugin","jquery-ui/safe-active-element","jquery-ui/safe-blur","jquery-ui/scroll-parent","jquery-ui/tabbable","jquery-ui/unique-id","jquery-ui/version","jquery-ui/widget","jquery-ui/widgets/mouse","jquery-ui/widgets/draggable","jquery-ui/widgets/droppable","jquery-ui/widgets/resizable"],e);else if("undefined"!=typeof exports){try{jQuery=require("jquery")}catch(e){}try{_=require("lodash")}catch(e){}try{gridstack=require("gridstack")}catch(e){}e(jQuery,_,gridstack.GridStackUI,exports)}else e(jQuery,_,GridStackUI,window)}(function(a,n,r,e){function i(e){r.GridStackDragDropPlugin.call(this,e)}return r.GridStackDragDropPlugin.registerPlugin(i),((i.prototype=Object.create(r.GridStackDragDropPlugin.prototype)).constructor=i).prototype.resizable=function(e,r){if(e=a(e),"disable"===r||"enable"===r)e.resizable(r);else if("option"===r){var i=arguments[2],t=arguments[3];e.resizable(r,i,t)}else{var u=e.data("gs-resize-handles")?e.data("gs-resize-handles"):this.grid.opts.resizable.handles;e.resizable(n.extend({},this.grid.opts.resizable,{handles:u},{start:r.start||function(){},stop:r.stop||function(){},resize:r.resize||function(){}}))}return this},i.prototype.draggable=function(e,r){return e=a(e),"disable"===r||"enable"===r?e.draggable(r):e.draggable(n.extend({},this.grid.opts.draggable,{containment:this.grid.opts.isNested?this.grid.container.parent():null,start:r.start||function(){},stop:r.stop||function(){},drag:r.drag||function(){}})),this},i.prototype.droppable=function(e,r){return(e=a(e)).droppable(r),this},i.prototype.isDroppable=function(e,r){return e=a(e),Boolean(e.data("droppable"))},i.prototype.on=function(e,r,i){return a(e).on(r,i),this},e.JQueryUIGridStackDragDropPlugin=i});
//# sourceMappingURL=gridstack.min.map