Geoportal Extension for Leaflet API Reference

Module: Draggable

[private] Draggable

...

Example

dragElement();

Methods

innerdragElement(element, header, container)

Common/Utils/Draggable.js, line 15

A draggable HTML element with JavaScript and CSS.

Name Type Description
element DOMElement

element

header DOMElement

header (optional)

container DOMElement

container (optional)

See:
Example
// CSS :
      // #element { position: absolute; }
  // HTML :
      // 
//
// //
// JS : var element = document.getElementById("element"); Draggable.dragElement(element, header, container);