Capítulo 223 de 411

Chapter 223: Draggable.get()

Core Idea

Static lookup that returns the Draggable instance associated with a given DOM element (or selector), or undefined if none exists.

Code Examples

Draggable.create(".draggable", { type: "x,y" });
let d = Draggable.get("#element1");

Connects To

  • Draggable.kill(): removes the instance from this lookup table so get() can no longer find it.