Affect behavior


Name spacerialto.widgetBehavior
FILEmulti-files in rialtoEngine\javascript\core\coreBehaviors\*.js
NAMEAffect behavior
INHERITS
VERSION0.86
update
DESCRIPTIONIt is rather the description of the affectation of behavior (relative to several files) than the description of an independent component



AFFECT METHOD


NameTypeDescriptionDefault
objectToMoveobjectHTML or javascript object on which we want to affect the behavior
behaviorStringkind of behavior ('DragAndDrop',''Missile','Target','ReSize')
setupobjectsetup 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