blob: e653308c726b80b543c4492011b5104156c6f20a (
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
49
50
51
52
53
54
|
<com:TContent ID="body">
<h1>TJuiSortable Samples</h1>
<com:TStyleSheet>
.ui-sortable {
list-style: none;
cursor: pointer;
}
.ui-sortable li {
border: 1px solid transparent;
padding: 3px;
border-radius:3px;
}
.ui-sortable li:hover {
background: lime;
border: 1px solid black;
}
.ui-sortable li.ui-sortable-highlight {
background: red;
border: 1px solid black;
height: 17px;
}
</com:TStyleSheet>
<table class="sampletable">
<tr><td class="samplenote">
Default options with a little css applied, change options during callback:
</td><td class="sampleaction">
<com:TJuiSortable
ID="repeater1"
onStop="repeater1_onStop"
/>
Items order: <com:TActiveLabel ID="label1" />
<div><com:TActiveCheckBox OnCheckedChanged="sort1" Text="Apply CSS dragging placeholder" /></div>
<div><com:TActiveCheckBox OnCheckedChanged="sort2" Text="Revert to new position using a smooth animation" /></div>
<div>
Cursor is
<com:TActiveDropDownList OnSelectedIndexChanged="sort3">
<com:TListItem Text="auto" Value="auto" Selected="true" />
<com:TListItem Text="move" Value="move" />
<com:TListItem Text="pointer" Value="pointer" />
<com:TListItem Text="crosshair" Value="crosshair" />
<com:TListItem Text="help" Value="help" />
</com:TActiveDropDownList>
while dragging
</div>
</td></tr>
</table>
</com:TContent>
|