summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDraggable/Home.page
blob: 3155afa170220081162d23b786ddd9c0faebd0c2 (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
<com:TContent ID="body">
<h1>TJuiDraggable Samples</h1>

<com:TStyleSheet>
	.ui-draggable {
		width: 100px;
		height:100px;
		background-color: lime;
		border: 1px solid black;
		padding: 1em;
	}
</com:TStyleSheet>
<table class="sampletable">

<tr><td class="samplenote" rowspan="2">
Default options with a little css applied, change options during callback:
</td><td class="sampleaction" style="height:600px">
	<com:TJuiDraggable
    ID="drag1"
		OnStart="drag1_start"
		OnStop="drag1_stop"
	>
	Drag me around
	</com:TJuiDraggable>
	<com:TActiveLabel ID="label1" Text="Waiting.." />
</td></tr>

<tr><td>
  <div>
    Move direction
    <com:TActiveButton Text="only horizontally" OnClick="drag1h" />
    <com:TActiveButton Text="only vertically" OnClick="drag1v" />
    <com:TActiveButton Text="both directions" OnClick="drag1b" />
  </div>
  <div>
    Cursor is
    <com:TActiveDropDownList OnSelectedIndexChanged="drag2c">
      <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>
  <div>
    <com:TActiveCheckBox OnCheckedChanged="drag3r" Text="Revert to original position after dragging stopped" />
  </div>
</td></tr>

</table>

</com:TContent>