From 918ed9fd995cc3e958bb0d48c8d234717facf181 Mon Sep 17 00:00:00 2001 From: tof <> Date: Tue, 4 Sep 2007 08:56:24 +0000 Subject: Merge TSlider component from 3.2-dev branch. --- .../pages/Controls/Samples/TSlider/Home.page | 40 ++++++++++++++++++++++ .../pages/Controls/Samples/TSlider/Home.php | 19 ++++++++++ 2 files changed, 59 insertions(+) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.php (limited to 'demos/quickstart/protected/pages/Controls/Samples/TSlider') diff --git a/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.page new file mode 100644 index 00000000..7670f9d3 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.page @@ -0,0 +1,40 @@ + +

TSlider Sample

+ + + + + + + +
+Simple horizontal slider, with no events handler attached + + + + +
+Horizontal slider from -50 to 50, with image handle, Javascript 'onSlide' handler, ServerSide 'onSliderChanged' handler, initial value and autopostback=true + + + + $('slider2value').innerHTML = value; + + +Value : <%=$this->slider2->value%> + + +
+Vertical slider from 0 to 1, with image handle, Javascript 'onSlide' handler, ServerSide 'onSliderChanged' handler, StepSize, and no autopostback + + + + $('slider3value').innerHTML = value; + + +Value : <%=$this->slider3->value%> + + + +
+
\ 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 new file mode 100644 index 00000000..4b9b61b9 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.php @@ -0,0 +1,19 @@ +slider1Result->setText('Slider Value : '.$this->slider1->getValue()); + } + + public function slider2Changed ($sender, $param) + { + $this->slider2Result->setText('onSliderChanged, Value : '.$sender->getValue()); + } + + public function slider3Changed ($sender, $param) + { + $this->slider3Result->setText('onSliderChanged, Value : '.$sender->getValue()); + } +} +?> \ No newline at end of file -- cgit v1.2.3