Control.DragEnd

Syntax

DragEnd: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The DragEnd event occurs when dragging the component is finished.

Example

To execute the example, connect the PP.js library and the table of the PP.css visual styles. See below the Javascript code which is used to locate a button on the HTML page.

<script type="text/javascript">
function DragEnd(data) {
         this.data = data;
         this.onDragEnd = function (sender, args)
         {
            alert("onDragEnd");
         }
}
var DE = new DragEnd("DragEnd event example");
var b1 = new PP.Ui.Button({
         Content: "Button",
         ContextMenu: DE.onDragEnd });
b1.addToNode("btn1");
</script>

After executing the example when dragging the button is finished the onDragEnd message is displayed.

The event use is given using the example of the ListBox component and described in the Example of Creating the ListBox Component page.

See also:

Control