summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected
diff options
context:
space:
mode:
authorxue <>2006-01-22 04:23:57 +0000
committerxue <>2006-01-22 04:23:57 +0000
commit5c9064d7d387c6f1e91fb11f47e14fb0d45cca3d (patch)
tree68e07768a25788c88b8803b5d4c677ca3b918a5a /demos/quickstart/protected
parent5ac8a92a03d90d2b5c70daaaecef305aa6155dc2 (diff)
Fixed renderInputTag issue with TRadioButton.
Diffstat (limited to 'demos/quickstart/protected')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.page26
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.php4
2 files changed, 25 insertions, 5 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.page
index 7d468a69..9e25fc8e 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.page
@@ -5,24 +5,40 @@
<table class="sampletable">
<tr><td class="samplenote">
-A checkbox with customized color and font:
+A checkbox with customized text alignment, color and font:
</td><td class="sampleaction">
<com:TCheckBox
Text="checkbox"
+ TextAlign="Left"
ForeColor="silver"
- BackColor="black"
+ BackColor="green"
Font.Size="14pt"
/>
</td></tr>
<tr><td class="samplenote">
-A click checkbox:
+A checkbox with label and input attributes:
</td><td class="sampleaction">
-<com:TCheckBox Text="click me" OnCheckedChanged="buttonClicked" />
+<com:TCheckBox
+ Text="click me"
+ InputAttributes.onclick="alert('this is checkbox');"
+ LabelAttributes.style="color:red"
+/>
+</td></tr>
+
+<tr><td class="samplenote">
+An auto postback checkbox:
+</td><td class="sampleaction">
+<com:TCheckBox
+ AutoPostBack="true"
+ ValidationGroup="t"
+ Text="click me"
+ OnCheckedChanged="checkboxClicked"
+ />
</td></tr>
<tr><td class="samplenote">
-A button causing validation:
+A checkbox causing validation on a textbox:
</td><td class="sampleaction">
<com:TTextBox ID="TextBox" />
<com:TRequiredFieldValidator
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.php
index badbca73..37eae19b 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.php
+++ b/demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.php
@@ -2,6 +2,10 @@
class Home extends TPage
{
+ public function checkboxClicked($sender,$param)
+ {
+ $sender->Text="I'm clicked";
+ }
}
?> \ No newline at end of file