summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/JuiControls
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages/JuiControls')
-rw-r--r--demos/quickstart/protected/pages/JuiControls/Samples/TJuiResizable/Home.page8
-rw-r--r--demos/quickstart/protected/pages/JuiControls/Samples/TJuiResizable/Home.php16
2 files changed, 22 insertions, 2 deletions
diff --git a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiResizable/Home.page b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiResizable/Home.page
index b5a207c0..6c61f7df 100644
--- a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiResizable/Home.page
+++ b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiResizable/Home.page
@@ -15,8 +15,12 @@
<tr><td class="samplenote">
Default options with a little css applied:
</td><td class="sampleaction">
- <com:TJuiResizable CssClass="resizable">
- Resize me!
+ <com:TJuiResizable
+ CssClass="resizable"
+ OnStart="resize1_start"
+ OnStop="resize1_stop"
+ >
+ <com:TActiveLabel ID="label1" Text="Resize me!" />
</com:TJuiResizable>
</td></tr>
diff --git a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiResizable/Home.php b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiResizable/Home.php
new file mode 100644
index 00000000..435b8a9b
--- /dev/null
+++ b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiResizable/Home.php
@@ -0,0 +1,16 @@
+<?php
+
+class Home extends TPage
+{
+ protected function resize1_start($sender, $param)
+ {
+ $size=$param->getCallbackParameter()->size;
+ $this->label1->Text.="<br/>Start: ".intval($size->width)." x ".intval($size->height);
+ }
+
+ protected function resize1_stop($sender, $param)
+ {
+ $size=$param->getCallbackParameter()->size;
+ $this->label1->Text.="<br/>Stop: ".intval($size->width)." x ".intval($size->height);
+ }
+} \ No newline at end of file