summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-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