drag me
drop it over me
public function drop1_ondrop($sender, $param)
{
$draggable=$param->DraggableControl;
$offset=$param->getCallbackParameter()->offset;
$target=$param->getCallbackParameter()->target->offset;
$top=$offset->top - $target->top;
$left=$offset->left - $target->left;
$this->label1->Text="Dropped ".$draggable->ID." at:
Top=".$top." Left=".$left;
}
Показать файл
Открыть проект
Свойство | Тип | Описание | |
---|---|---|---|
$_options |
Метод | Описание | |
---|---|---|
OnOut ( object $params ) | Raises the OnOut event | |
OnOver ( object $params ) | Raises the OnOver event | |
__construct ( ) | Creates a new callback control, sets the adapter to TActiveControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, by calling this constructor. | |
getOptions ( ) : |
Object containing defined javascript options | |
getValidEvents ( ) : array() | Array containing valid javascript events | |
getValidOptions ( ) : array() | Array containing valid javascript options | |
getWidget ( ) : string | ||
getWidgetID ( ) : string | ||
onActivate ( object $params ) | Raises the OnActivate event | |
onCallback ( $param ) | This method is invoked when a callback is requested. The method raises 'OnCallback' event to fire up the event handlers. If you override this method, be sure to call the parent implementation so that the event handler can be invoked. | |
onCreate ( object $params ) | Raises the OnCreate event | |
onDeactivate ( object $params ) | Raises the OnDeactivate event | |
onDrop ( object $params ) | Raises the OnDrop event | |
raiseCallbackEvent ( $param ) | Raises callback event. This method is required by the {@link ICallbackEventHandler} interface. |
Метод | Описание | |
---|---|---|
addAttributesToRender ( $writer ) | Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control. | |
getPostBackOptions ( ) : array |
public __construct ( ) |
protected addAttributesToRender ( $writer ) |
public getOptions ( ) : |
||
Результат |
protected getPostBackOptions ( ) : array | ||
Результат | array | list of callback options. |
public getValidEvents ( ) : array() | ||
Результат | array() |
public getValidOptions ( ) : array() | ||
Результат | array() |
public getWidgetID ( ) : string | ||
Результат | string | the clientid of the jQueryUI widget element |
public onActivate ( object $params ) | ||
$params | object | event parameters |
public onCallback ( $param ) |
public onDeactivate ( object $params ) | ||
$params | object | event parameters |
public raiseCallbackEvent ( $param ) |