feat(draggable): Add toggle draggable method.

This commit is contained in:
Vitaliy Velikodniy
2014-02-14 13:09:03 +01:00
committed by vieron
parent e21f63a05a
commit 073fdc40e0
+12
View File
@@ -951,6 +951,18 @@
return this;
};
/**
* Toggle dragging.
*
* @method toggle
* @return {Class} Returns the instance of the Gridster Class.
*/
fn.toggle = function() {
(this.drag_api.disabled) ? this.drag_api.enable() : this.drag_api.disable();
return this;
};
/**