summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-01-10 17:31:59 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-01-10 17:31:59 +0100
commit3b862bfb3e8e89a61c1219038cc1b5979271196e (patch)
tree607fa65af86024c47ef5995b1f5f7c698657e5ab /demos/quickstart/protected/pages
parent329e728a9d673f44ead80e3ba131eda221d3e9f2 (diff)
Added quickstart demo for TRatingList
Diffstat (limited to 'demos/quickstart/protected/pages')
-rwxr-xr-xdemos/quickstart/protected/pages/Controls/List.page2
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TRatingList/Home.page71
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TRatingList/Home.php9
3 files changed, 82 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/List.page b/demos/quickstart/protected/pages/Controls/List.page
index ae8d86bf..5e78bb13 100755
--- a/demos/quickstart/protected/pages/Controls/List.page
+++ b/demos/quickstart/protected/pages/Controls/List.page
@@ -108,4 +108,6 @@ Since v3.1.1, <tt>TDropDownList</tt> starts to support prompt text (something li
This is an EXPERIMENTAL class that displays clickable images that represent a TRadioButtonList.
</p>
+<com:RunBar PagePath="Controls.Samples.TRatingList.Home" />
+
</com:TContent>
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TRatingList/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TRatingList/Home.page
new file mode 100644
index 00000000..5790f840
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TRatingList/Home.page
@@ -0,0 +1,71 @@
+<com:TContent ID="body">
+<h1>TRatingList Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+A simple TRatingList and its caption:
+</td><td class="sampleaction">
+
+<com:TLabel ID="label1" Text="Rate it:" />
+<com:TRatingList CaptionID="label1">
+ <com:TListItem Text="Fair" />
+ <com:TListItem Text="Average" />
+ <com:TListItem Text="Good" />
+ <com:TListItem Text="Excellent" />
+</com:TRatingList>
+
+</td></tr>
+
+<tr><td class="samplenote">
+TRatingList in vertical mode, SelectedIndex=2
+</td><td class="sampleaction">
+
+<com:TLabel ID="label2" Text="Rate it:" />
+<com:TRatingList CaptionID="label2" SelectedIndex="2" RepeatDirection="Vertical" Style="caption-side: right;">
+ <com:TListItem Text="Poor" />
+ <com:TListItem Text="Fair" />
+ <com:TListItem Text="Average" />
+ <com:TListItem Text="Good" />
+ <com:TListItem Text="Excellent" />
+ <com:TListItem Text="Super" />
+</com:TRatingList>
+
+</td></tr>
+
+<tr><td class="samplenote">
+TRatingList with RatingStyle=blocks, AutoPostback=true, SelectedValue=Good
+</td><td class="sampleaction">
+
+<com:TLabel ID="label3" Text="Rate it:" />
+<com:TRatingList ID="Rating3" CaptionID="label3" RatingStyle="blocks" SelectedValue="Good" AutoPostBack="true" OnSelectedIndexChanged="rating3_selectionChanged">
+ <com:TListItem Text="Poor" />
+ <com:TListItem Text="Fair" />
+ <com:TListItem Text="Average" />
+ <com:TListItem Text="Good" />
+ <com:TListItem Text="Excellent" />
+ <com:TListItem Text="Super" />
+</com:TRatingList>
+<br/>
+A label to check postback results: <com:TLabel ID="labelResult3" />
+
+</td></tr>
+
+<tr><td class="samplenote">
+TRatingList with AllowInput=false, Rating=4.6
+</td><td class="sampleaction">
+
+<com:TLabel ID="label4" Text="Rate it:" />
+<com:TRatingList CaptionID="label4" AllowInput="false" Rating="4.6">
+ <com:TListItem Text="Poor" />
+ <com:TListItem Text="Fair" />
+ <com:TListItem Text="Average" />
+ <com:TListItem Text="Good" />
+ <com:TListItem Text="Excellent" />
+ <com:TListItem Text="Super" />
+</com:TRatingList>
+
+</td></tr>
+
+</table>
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TRatingList/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TRatingList/Home.php
new file mode 100644
index 00000000..5e8ed1bd
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TRatingList/Home.php
@@ -0,0 +1,9 @@
+<?php
+
+class Home extends TPage
+{
+ protected function rating3_selectionChanged($sender, $param)
+ {
+ $this->labelResult3->Text=$this->Rating3->SelectedValue;
+ }
+} \ No newline at end of file