diff options
author | xue <> | 2006-01-03 00:15:59 +0000 |
---|---|---|
committer | xue <> | 2006-01-03 00:15:59 +0000 |
commit | 551cdfb76ddde47198106839747df9c1ef74e4fe (patch) | |
tree | ca519da9565df93e79a312c019801cb8aec5500c /demos | |
parent | 4d8ed423f7b4a8eae2898cc5552829595717a581 (diff) |
Added TBulletedList and its demos.
Diffstat (limited to 'demos')
5 files changed, 90 insertions, 4 deletions
diff --git a/demos/quickstart/protected/pages/Controls/List.page b/demos/quickstart/protected/pages/Controls/List.page index f70c4368..5b0e766a 100644 --- a/demos/quickstart/protected/pages/Controls/List.page +++ b/demos/quickstart/protected/pages/Controls/List.page @@ -24,5 +24,6 @@ List controls covered in this section are all inherit directly or indirectly fro <com:RunBar PagePath="Controls.Samples.TRadioButtonList.Home" />
<h2>TBulletList</h2>
+<com:RunBar PagePath="Controls.Samples.TBulletedList.Home" />
</com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TBulletedList/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TBulletedList/Home.page new file mode 100644 index 00000000..c5171868 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TBulletedList/Home.page @@ -0,0 +1,69 @@ +<com:TContent ID="body">
+
+<h1>TBulletedList Samples</h1>
+
+<table class="sampletable">
+
+<tr>
+<td class="samplenote">
+Bulleted list with default settings:
+</td>
+<td class="sampleaction">
+<com:TBulletedList>
+ <com:TListItem Value="value 1" Text="item 1" />
+ <com:TListItem Value="value 2" Text="item 2" />
+ <com:TListItem Value="value 3" Text="item 3" />
+ <com:TListItem Value="value 4" Text="item 4" />
+</com:TBulletedList>
+</td>
+</tr>
+
+<tr>
+<td class="samplenote">
+Bulleted list with customized color, font, bullet style:
+</td>
+<td class="sampleaction">
+<com:TBulletedList
+ BulletStyle="UpperRoman"
+ FirstBulletNumber="5"
+ BackColor="silver"
+ Font.Size="12pt">
+ <com:TListItem Value="value 1" Text="item 1" />
+ <com:TListItem Value="value 2" Text="item 2" Selected="true" />
+ <com:TListItem Value="value 3" Text="item 3" />
+ <com:TListItem Value="value 4" Text="item 4" />
+</com:TBulletedList>
+</td>
+</tr>
+
+<tr>
+<td class="samplenote">
+Bulleted list of hyperlinks:
+</td>
+<td class="sampleaction">
+<com:TBulletedList DisplayMode="HyperLink" Target="_blank">
+ <com:TListItem Value="http://www.google.com/" Text="google" />
+ <com:TListItem Value="http://www.yahoo.com/" Text="yahoo" />
+ <com:TListItem Value="http://www.amazon.com/" Text="amazon" />
+</com:TBulletedList>
+</td>
+
+<tr>
+<td class="samplenote">
+Bulleted list of link buttons (click on them to see the result):
+</td>
+<td class="sampleaction">
+<com:TBulletedList DisplayMode="LinkButton" Click="buttonClicked">
+ <com:TListItem Value="http://www.google.com/" Text="google" />
+ <com:TListItem Value="http://www.yahoo.com/" Text="yahoo" />
+ <com:TListItem Value="http://www.amazon.com/" Text="amazon" />
+</com:TBulletedList>
+<com:TLabel ID="Result" ForeColor="red" />
+</td>
+
+</tr>
+
+
+</table>
+
+</com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TBulletedList/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TBulletedList/Home.php new file mode 100644 index 00000000..d3e04787 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TBulletedList/Home.php @@ -0,0 +1,12 @@ +<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ $item=$sender->Items[$param->Index];
+ $this->Result->Text="You clicked $item->Text : $item->Value.";
+ }
+}
+
+?>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page index ac9de17e..d4833ea9 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page @@ -104,7 +104,8 @@ Check box list's behavior upon postback: <com:TListItem Value="value 1" Text="item 1" />
<com:TListItem Value="value 2" Text="item 2" Selected="true" />
<com:TListItem Value="value 3" Text="item 3" />
- <com:TListItem Value="value 4" Text="item 4" Selected="true" />
+ <com:TListItem Value="value 4" Text="item 4" Enabled="false" />
+ <com:TListItem Value="value 5" Text="item 5" Selected="true" />
</com:TCheckBoxList>
<com:TButton Text="Submit" Click="buttonClicked" />
<br/>
@@ -121,7 +122,8 @@ Auto postback check box list: <com:TListItem Value="value 1" Text="item 1" />
<com:TListItem Value="value 2" Text="item 2" Selected="true" />
<com:TListItem Value="value 3" Text="item 3" />
- <com:TListItem Value="value 4" Text="item 4" Selected="true" />
+ <com:TListItem Value="value 4" Text="item 4" Enabled="false" />
+ <com:TListItem Value="value 5" Text="item 5" Selected="true" />
</com:TCheckBoxList>
<com:TLabel ID="SelectionResult2" ForeColor="red" />
</td>
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page index 95fea89b..3f5f7053 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page @@ -104,7 +104,8 @@ Radio button list's behavior upon postback: <com:TListItem Value="value 1" Text="item 1" />
<com:TListItem Value="value 2" Text="item 2" Selected="true" />
<com:TListItem Value="value 3" Text="item 3" />
- <com:TListItem Value="value 4" Text="item 4" />
+ <com:TListItem Value="value 4" Text="item 4" Enabled="false" />
+ <com:TListItem Value="value 5" Text="item 5" />
</com:TRadioButtonList>
<com:TButton Text="Submit" Click="buttonClicked" />
<br/>
@@ -121,7 +122,8 @@ Auto postback radio button list: <com:TListItem Value="value 1" Text="item 1" />
<com:TListItem Value="value 2" Text="item 2" Selected="true" />
<com:TListItem Value="value 3" Text="item 3" />
- <com:TListItem Value="value 4" Text="item 4" />
+ <com:TListItem Value="value 4" Text="item 4" Enabled="false" />
+ <com:TListItem Value="value 5" Text="item 5" />
</com:TRadioButtonList>
<com:TLabel ID="SelectionResult2" ForeColor="red" />
</td>
|