diff options
author | xue <> | 2006-01-21 03:57:34 +0000 |
---|---|---|
committer | xue <> | 2006-01-21 03:57:34 +0000 |
commit | 1540d094408633a6b01b333b193e731a75457c17 (patch) | |
tree | 30763d6bd04fd20ed57227df005eb1565ad47380 /demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php | |
parent | baf2eb12bc99905ad18fadaa4a542a0d109f9245 (diff) |
Added TButton demo (incomplete).
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php')
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php new file mode 100644 index 00000000..f18072f2 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php @@ -0,0 +1,14 @@ +<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ if($param instanceof TCommandEventParameter)
+ $sender->Text="Name: {$param->CommandName}, Param: {$param->CommandParameter}";
+ else
+ $sender->Text="I'm clicked";
+ }
+}
+
+?>
\ No newline at end of file |