summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.page26
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.php4
-rw-r--r--framework/Web/UI/WebControls/TRadioButton.php3
3 files changed, 26 insertions, 7 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
diff --git a/framework/Web/UI/WebControls/TRadioButton.php b/framework/Web/UI/WebControls/TRadioButton.php
index e756cba6..a345f060 100644
--- a/framework/Web/UI/WebControls/TRadioButton.php
+++ b/framework/Web/UI/WebControls/TRadioButton.php
@@ -131,9 +131,8 @@ class TRadioButton extends TCheckBox
* Renders a radiobutton input element.
* @param THtmlWriter the writer for the rendering purpose
* @param string checkbox id
- * @param string onclick attribute value for the checkbox
*/
- protected function renderInputTag($writer,$clientID,$onclick)
+ protected function renderInputTag($writer,$clientID)
{
if($clientID!=='')
$writer->addAttribute('id',$clientID);