Module-documentation

version 1.0.0
module: node-plugin
maintanance: Marco Asbreuk
home
all modules

Plugin by attribute

This example shows how the dd-plugin can get activated by just defining its attribute.

Drag the rectangle. The Node is made draggable by defining the attribute plugin-dd="true".

Code-example:

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