JqxDragDrop: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(Add javascript snippet)
Line 9: Line 9:
http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxdragdrop/jquery-dragdrop-getting-started.htm
http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxdragdrop/jquery-dragdrop-getting-started.htm


== Example ==
== Example (Basic) ==


<pre>
<pre>
Line 18: Line 18:
   TextArea1.value=TextArea1.value & Label1.textContent & " " & n & vbCRLF   
   TextArea1.value=TextArea1.value & Label1.textContent & " " & n & vbCRLF   
End Function
End Function
</pre>
== Example (JavaScript) ==
<pre>
var n=0;
TextArea1=Document.getElementById("TextArea1");
Label1=Document.getElementById("Label1");
DragDrop1.onTargetDrop = function() {
  n += 1;
  TextArea1.value=TextArea1.value + Label1.textContent + " " + n + '\n';
}
</pre>
</pre>



Revision as of 22:53, 27 May 2013

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.