
Affect behavior
| Name space | rialto.widgetBehavior |
| FILE | multi-files in rialtoEngine\javascript\core\coreBehaviors\*.js |
| NAME | Affect behavior |
| INHERITS | |
| VERSION | 0.86 |
| update | |
| DESCRIPTION | It is rather the description of the affectation of behavior (relative to several files) than the description of an independent component |
AFFECT METHOD
| Name | Type | Description | Default |
| objectToMove | object | HTML or javascript object on which we want to affect the behavior | |
| behavior | String | kind of behavior ('DragAndDrop',''Missile','Target','ReSize') | |
| setup | object | setup parameters for the behavior | |
Example:
var o = document.getElementById('objectToMove');
var setup = { ghost: {aspect:'icon'},isWithMovingInfo : true};
rialto.widgetBehavior.affect(o,'DragAndDrop',setup);
See also:
Drag and drop behavior
Resize behavior
Target/Missile behavior