Source for file ADraggableWidget.php

Documentation is available at ADraggableWidget.php

  1. <?php
  2. /**
  3.  *
  4.  */
  5.  
  6.  
  7. /**
  8.  * A widget Decorator that allows widgets to be made draggable
  9.  */
  10.     
  11.     function __construct(AWidget $widget){
  12.         parent::__construct($widget);
  13.         Alia::sendJScript("new Draggable('".$widget->getAttribute('id')."',{onEnd: function(draggable,mouseEvent){".AJScript::emit('moved',$this)."}});");
  14.     }
  15.     
  16. }

Documentation generated on Fri, 11 Jul 2008 13:28:39 -0400 by phpDocumentor 1.4.2