JqxDragDrop

From NSB App Studio
Revision as of 22:53, 27 May 2013 by JwellsNB (talk | contribs) (Add javascript snippet)
Jump to navigation Jump to search

Description

jqxDragDrop is a plugin which will make any control draggable. It can be used in combination with many widgets like jqxTree, jqxGrid, jqxListBox and etc.

Properties and Methods

See the complete documentation at jqWidget's site: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxdragdrop/jquery-dragdrop-getting-started.htm

Example (Basic)

Dim n=0

Function DragDrop1_onTargetDrop()
  n=n+1
  TextArea1.value=TextArea1.value & Label1.textContent & " " & n & vbCRLF  
End Function

Example (JavaScript)

var n=0;
TextArea1=Document.getElementById("TextArea1");
Label1=Document.getElementById("Label1");

DragDrop1.onTargetDrop = function() {
  n += 1;
  TextArea1.value=TextArea1.value + Label1.textContent + " " + n + '\n';
}

Output

See above.