diff options
author | tof <> | 2007-09-23 12:02:44 +0000 |
---|---|---|
committer | tof <> | 2007-09-23 12:02:44 +0000 |
commit | eae868ae7b80cfeebb8e732014d352d6cf8075c3 (patch) | |
tree | c911356b7a9ec5f37d05b0f1ea5f5257eb111be2 /demos/quickstart/protected | |
parent | e1e00df22e6e9a589c3273822ec8ce90c21da84e (diff) |
Update TSlider, and make it looks nicer by default.
Diffstat (limited to 'demos/quickstart/protected')
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.page | 17 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.php | 6 |
2 files changed, 14 insertions, 9 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.page index 7670f9d3..bfbbe8e3 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.page @@ -4,17 +4,17 @@ <table class="sampletable"> <tr><td class="samplenote"> -Simple horizontal slider, with no events handler attached</td><td class="sampleaction"> -<com:TSlider id="slider1" Direction="Horizontal"/> +Simple horizontal slider, with no progress indicator, with no events handler attached</td><td class="sampleaction"> +<com:TSlider id="slider1" ProgressIndicator="false" Direction="Horizontal"/> </td> <td class="sampleaction"> <com:TButton onClick="submit1" Text="Submit"/> <com:TLabel id="slider1Result"/> </td></tr> <tr><td class="samplenote"> -Horizontal slider from -50 to 50, with image handle, Javascript 'onSlide' handler, ServerSide 'onSliderChanged' handler, initial value and autopostback=true +Horizontal slider from -50 to 50, Javascript 'onSlide' handler, ServerSide 'onSliderChanged' handler, initial value and autopostback=true </td><td class="sampleaction"> -<com:TSlider id="slider2" AutoPostBack="true" Handle.CssClass="handle-image" Direction="Horizontal" Value="30" Enabled="true" MinValue="-50" MaxValue="50" OnValueChanged="slider2Changed"> +<com:TSlider id="slider2" AutoPostBack="true" Direction="Horizontal" Value="0" Enabled="true" MinValue="-50" MaxValue="50" OnValueChanged="slider2Changed"> <prop:ClientSide.onSlide> $('slider2value').innerHTML = value; </prop:ClientSide.onSlide> @@ -24,9 +24,9 @@ Value : <span id="slider2value"><%=$this->slider2->value%></span> <com:TLabel id="slider2Result"/> </td></tr> <tr><td class="samplenote"> -Vertical slider from 0 to 1, with image handle, Javascript 'onSlide' handler, ServerSide 'onSliderChanged' handler, StepSize, and no autopostback +Vertical slider from 0 to 1, Javascript 'onSlide' handler, ServerSide 'onSliderChanged' handler, StepSize, and no autopostback </td><td class="sampleaction"> -<com:TSlider id="slider3" AutoPostBack="false" Handle.CssClass="handle-image" Direction="Vertical" Enabled="true" MinValue="0" MaxValue="1" StepSize="0.1" OnValueChanged="slider3Changed"> +<com:TSlider id="slider3" AutoPostBack="false" Direction="Vertical" Enabled="true" MinValue="0" MaxValue="1" StepSize="0.1" OnValueChanged="slider3Changed"> <prop:ClientSide.onSlide> $('slider3value').innerHTML = value; </prop:ClientSide.onSlide> @@ -35,6 +35,7 @@ Value : <span id="slider3value"><%=$this->slider3->value%></span> </td><td class="sampleaction"> <com:TButton Text="Submit"/> <com:TLabel id="slider3Result"/> -</td></tr> -</table> +</td></tr>
+</table>
+ </com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.php index 4b9b61b9..c1c8a711 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.php +++ b/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.php @@ -1,6 +1,10 @@ <?php class Home extends TPage -{ +{
+ public function onInit ($param)
+ {
+ parent::onInit($param);
+ } public function submit1 ($sender, $param) { $this->slider1Result->setText('Slider Value : '.$this->slider1->getValue()); |