blob: 6059fe6023124d42da40ba4c8bd93c7cc5d73ef5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<com:TContent ID="body">
<h1>TJuiDroppable Samples</h1>
<com:TStyleSheet>
.ui-draggable {
width: 100px;
height:100px;
background-color: lime;
border: 1px solid black;
padding: 1em;
}
.ui-droppable {
width: 150px;
height:150px;
border: 1px solid black;
padding: 1em;
margin: 1em;
}
.drop-yellow {
background-color: yellow;
}
.drop-red {
background-color: red;
}
</com:TStyleSheet>
<table class="sampletable">
<tr><td class="samplenote">
Default options with a little css applied:
</td><td class="sampleaction" style="height:600px">
<com:TJuiDraggable ID="drag1">
Drag me around
</com:TJuiDraggable>
<com:TJuiDroppable OnDrop="drop1_ondrop" CssClass="drop-yellow">
Drop it here!
<br/><com:TActiveLabel ID="label1" />
</com:TJuiDroppable>
<com:TJuiDroppable OnDrop="drop2_ondrop" CssClass="drop-red">
Drop it here!
<br/><com:TActiveLabel ID="label2" />
</com:TJuiDroppable>
</td></tr>
</table>
</com:TContent>
|