summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/JuiControls/Samples/TJuiResizable
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-02-08 12:05:20 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-02-08 12:05:20 +0100
commit3b73b49c862563f92b678db4791a3fb82a9bd886 (patch)
treeb8483f54b9613789376db263ac3d77da27a0a6d2 /demos/quickstart/protected/pages/JuiControls/Samples/TJuiResizable
parent5283d8624a974e73019e1dc1626de2bc3b1a9ff3 (diff)
TJuiResizable events
Diffstat (limited to 'demos/quickstart/protected/pages/JuiControls/Samples/TJuiResizable')
-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