3 lines
1.5 KiB
JavaScript
3 lines
1.5 KiB
JavaScript
/** gridstack.js 0.5.5 - JQuery UI Drag&Drop plugin @preserve */
|
|
!function(e){if("function"==typeof define&&define.amd)define(["jquery","gridstack","exports"],e);else if("undefined"!=typeof exports){try{jQuery=require("jquery")}catch(e){}try{gridstack=require("gridstack")}catch(e){}e(jQuery,gridstack.GridStackUI,exports)}else e(jQuery,GridStackUI,window)}(function(a,t,e){function r(e){t.GridStackDragDropPlugin.call(this,e)}return t.GridStackDragDropPlugin.registerPlugin(r),((r.prototype=Object.create(t.GridStackDragDropPlugin.prototype)).constructor=r).prototype.resizable=function(e,t){if(e=a(e),"disable"===t||"enable"===t)e.resizable(t);else if("option"===t){var r=arguments[2],i=arguments[3];e.resizable(t,r,i)}else{var n=e.data("gs-resize-handles")?e.data("gs-resize-handles"):this.grid.opts.resizable.handles;e.resizable(a.extend({},this.grid.opts.resizable,{handles:n},{start:t.start||function(){},stop:t.stop||function(){},resize:t.resize||function(){}}))}return this},r.prototype.draggable=function(e,t){return e=a(e),"disable"===t||"enable"===t?e.draggable(t):e.draggable(a.extend({},this.grid.opts.draggable,{containment:this.grid.opts.isNested?this.grid.container.parent():null,start:t.start||function(){},stop:t.stop||function(){},drag:t.drag||function(){}})),this},r.prototype.droppable=function(e,t){return(e=a(e)).droppable(t),this},r.prototype.isDroppable=function(e,t){return e=a(e),Boolean(e.data("droppable"))},r.prototype.on=function(e,t,r){return a(e).on(t,r),this},e.JQueryUIGridStackDragDropPlugin=r});
|
|
//# sourceMappingURL=gridstack.min.map
|