Module-documentation

version 1.0.0
module: drag
maintanance: Marco Asbreuk
home
all modules

Simple draggable

Draggable elements can be setup using the attribute dd-draggable="true", or using javascript by using node.plugin(ITSA.Plugins.nodeDD). This example uses plain HTML. Draggable items will force the window to scroll by default when coming outside the visible area.

Drag the 2 rectangles. The first is constrained using html, the second is set up using javascript.

Code-example:

<body>
    <div class="container" plugin-dd="true"></div>
</body>
<script src="itsabuild-min.js"></script>
API Docs