| appendTo | string | 'parent' |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| disabled | bool | false |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| distance | int | 5 |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| data | string | null |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| dropAction | string | 'default' |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| dropTarget | string/object | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| dragZIndex | int | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| feedback | string | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| initFeedback | string | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| opacity | int | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| onDragEnd | string | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| onDrag | string | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| onDragStart | string | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| onTargetDrop | string | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| onDropTargetEnter | string | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| onDropTargetLeave | string | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| restricter | object/string | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| revert | bool | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| revertDuration | int | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
| tolerance | string | undefined |
|
Sets or gets the <script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
|
||
Events |
||
| dragStart | Event | |
Code examples
Bind to the
<script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}
|
||
| dragEnd | Event | |
Code examples
Bind to the
<script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}
|
||
| dragging | Event | |
Code examples
Bind to the
<script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}
|
||
| dropTargetEnter | Event | |
Code examples
Bind to the
<script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}
|
||
| dropTargetLeave | Event | |
Code examples
Bind to the
<script src="~/jqwidgets/jqxdragdrop.js"></script>
<style type="text/css">
.row {
padding: 1px;
}
.draggable {
border: 1px solid #bbb;
background-color: #C9ECFF;
width: 100px;
height: 100px;
left: 30px;
top: 50px;
padding: 5px;
z-index: 2;
}
#draggable-parent {
background-color: #eeffee;
width: 350px;
height: 350px;
text-align: center;
border: 1px solid #eee;
float: left;
}
.main-container {
width: 350px;
height:350px;
z-index: 0;
}
.events {
float: right;
padding: 10px;
font-family: Tahoma;
font-size: 13px;
}
.labels {
position: relative;
font-family: Verdana;
font-size: 11px;
color: #000;
}
.drop-target {
background-color: #FBFFB5;
width: 150px;
height: 150px;
border: 1px solid #ddd;
margin-left: 190px;
margin-top: 70px;
z-index: 1;
}
</style>
<div class="main-container">
<div id="draggable-parent">
<div id="draggable" class="draggable">
<div class="labels">I can be dragged only inside my parent</div>
</div>
<jqx-drag-drop selector="draggable">
</jqx-drag-drop>
<div class="drop-target"><div class="label">I'm a drop target</div></div>
</div>
</div>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}
|
||
Methods |
||