summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDraggable
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages/JuiControls/Samples/TJuiDraggable')
-rw-r--r--demos/quickstart/protected/pages/JuiControls/Samples/TJuiDraggable/Home.page6
-rw-r--r--demos/quickstart/protected/pages/JuiControls/Samples/TJuiDraggable/Home.php16
2 files changed, 21 insertions, 1 deletions
diff --git a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDraggable/Home.page b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDraggable/Home.page
index 6912389d..349922cb 100644
--- a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDraggable/Home.page
+++ b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDraggable/Home.page
@@ -15,9 +15,13 @@
<tr><td class="samplenote">
Default options with a little css applied:
</td><td class="sampleaction" style="height:600px">
- <com:TJuiDraggable>
+ <com:TJuiDraggable
+ OnStart="drag1_start"
+ OnStop="drag1_stop"
+ >
Drag me around
</com:TJuiDraggable>
+ <com:TActiveLabel ID="label1" Text="Waiting.." />
</td></tr>
</table>
diff --git a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDraggable/Home.php b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDraggable/Home.php
new file mode 100644
index 00000000..348eea55
--- /dev/null
+++ b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDraggable/Home.php
@@ -0,0 +1,16 @@
+<?php
+
+class Home extends TPage
+{
+ protected function drag1_start($sender, $param)
+ {
+ $offset=$param->getCallbackParameter()->offset;
+ $this->label1->Text.="<br/>Start drag at (".$offset->left.",".$offset->top.")";
+ }
+
+ protected function drag1_stop($sender, $param)
+ {
+ $offset=$param->getCallbackParameter()->offset;
+ $this->label1->Text.="<br/>Stop drop at (".$offset->left.",".$offset->top.")";
+ }
+} \ No newline at end of file