DragEnd: function (sender, args)
sender. Event source.
args. Event information.
The DragEnd event occurs when dragging the component is finished.
To execute the example, connect the PP.js library and the table of the PP.css visual styles. Seebelow 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: