mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
feat(draggable): Add toggle draggable method.
This commit is contained in:
committed by
vieron
parent
e21f63a05a
commit
073fdc40e0
Vendored
+12
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user