Module-documentation

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

Simple draggable plugin

Draggable elements can be setup using the attribute dd-draggable="true", or using javascript by using node.plugin(ITSA.Plugins.nodeDD). This example uses the plugin. The plugin does nothing more than add the right attribute to the draggable Element, and it just works.

Drag the rectangle. The Node is made draggable by a plugin.

Code-example:

<body>
    <div class="container"></div>
</body>
<script src="itsabuild-min.js"></script>
<script>
    document.getElement('.container').plug('dd');
</script>
API Docs