This module makes an Element to be constrained when dragged or repositioned.
constrain is a typical browser-module.
In the browser:
constrian-plugin makes an Element to constrain to another
window, specified by
selector. This constrain-effect will be active whenever the Element is dragged or repositioned.
The preferred way is to set the focusmanager through HTML, because you don't need client-side rendering:
<div plugin-constrain="true" constrain-selector=".container"></div>
A node can also be constrained by using the plugin which gets returned by the module (when required):
<script> var ITSA = require('itsa'), mynode = document.getAll('#mynode'); mynode.plug('constrain'); </script>