diff options
author | ctrlaltca@gmail.com <> | 2011-06-01 21:29:36 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-06-01 21:29:36 +0000 |
commit | 4aa6dcff694eb6bbdbe139ae3eb45a38b2f397ea (patch) | |
tree | 874a23e11e5d6af98d2949c25e770a14ccd4eea9 /demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton | |
parent | 71df3f52602b3cda5a443079f81be75eeb9e96db (diff) |
added documentation for TActiveLinkButton class
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton')
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page | 46 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php | 14 |
2 files changed, 60 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page new file mode 100644 index 00000000..0c896f64 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page @@ -0,0 +1,46 @@ +<com:TContent ID="body">
+
+<h1>TActiveLinkButton Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+Link button with only body content:
+</td><td class="sampleaction">
+<com:TActiveLinkButton>
+body content
+</com:TActiveLinkButton>
+</td></tr>
+
+<tr><td class="samplenote">
+A click link button:
+</td><td class="sampleaction">
+<com:TActiveLinkButton Text="click me" OnClick="buttonClicked" />
+</td></tr>
+
+<tr><td class="samplenote">
+A callback link button:
+</td><td class="sampleaction">
+<com:TActiveLinkButton
+ Text="click me"
+ OnCallback="buttonClicked"
+ ActiveControl.CallbackParameter="value"
+ />
+</td></tr>
+
+<tr><td class="samplenote">
+A button causing validation:
+</td><td class="sampleaction">
+<com:TTextBox ID="TextBox" />
+<com:TRequiredFieldValidator
+ ControlToValidate="TextBox"
+ Display="Dynamic"
+ ErrorMessage="input required in the textbox"
+ ValidationGroup="Group"
+ />
+<com:TActiveLinkButton Text="submit" ValidationGroup="Group" />
+</td></tr>
+
+</table>
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php new file mode 100644 index 00000000..64e2dede --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php @@ -0,0 +1,14 @@ +<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ if($param instanceof TCallbackEventParameter)
+ $sender->Text="Callback Parameter: {$param->CallbackParameter}";
+ else
+ $sender->Text="I'm clicked";
+ }
+}
+
+?>
\ No newline at end of file |