summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.page56
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.php10
2 files changed, 65 insertions, 1 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.page
index 2c862fb7..38ff9180 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.page
@@ -1,8 +1,14 @@
<com:TContent ID="body">
<h1>TAccordion Samples</h1>
+<table class="sampletable">
+
+<tr><td class="samplenote">
+A simple TAccordion populated with other controls:
+</td><td class="sampleaction">
+
<com:TAccordion>
- <com:TAccordionView ID="View1" Caption="View 1" Height="200px">
+ <com:TAccordionView ID="View1" Caption="View 1" >
<h2>View 1</h2>
</com:TAccordionView>
@@ -25,4 +31,52 @@
</com:TAccordionView>
</com:TAccordion>
+</td></tr>
+
+<tr><td class="samplenote">
+Two nested TAccordion; the external one has AnimationDuration=0, while the internal one has a fixed ViewHeight=100
+</td><td class="sampleaction">
+
+<com:TAccordion AnimationDuration="0" >
+ <com:TAccordionView Caption="View 1">
+ <p>
+ Contents for view 1: a nested TAccordion control
+ </p>
+ <com:TAccordion ViewHeight="100" >
+ <com:TAccordionView Caption="Nested View A">
+ Contents for nested view A
+ </com:TAccordionView>
+ <com:TAccordionView Caption="Nested View B">
+ Contents for nested view B
+ </com:TAccordionView>
+ <com:TAccordionView Caption="Nested View C">
+ Contents for nested view C
+ </com:TAccordionView>
+ <com:TAccordionView Caption="Nested View D">
+ Contents for nested view D
+ </com:TAccordionView>
+ </com:TAccordion>
+ <p>
+ More content for view 1
+ </p>
+ </com:TAccordionView>
+
+ <com:TAccordionView Caption="View 2">
+ <p>
+ Contents for view 2: a callback button
+ </p>
+ <com:TActiveButton ID="linkExecute" Text="Execute transaction" OnClick="executeTransaction" />
+ </com:TAccordionView>
+
+ <com:TAccordionView Caption="View 3">
+ <p>
+ Contents for view 3: a postback button
+ </p>
+ <com:TButton ID="cmd2" Text="Execute postback" OnClick="executeTransaction" />
+ </com:TAccordionView>
+
+</com:TAccordion>
+<br />
+A label to check postback/callback results: <com:TActiveLabel ID="lab1" />
+
</com:TContent>
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.php
index badbca73..3da69927 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.php
+++ b/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.php
@@ -2,6 +2,16 @@
class Home extends TPage
{
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+ $this->lab1->Text="";
+ }
+
+ public function executeTransaction($sender, $param)
+ {
+ $this->lab1->Text="executeTransaction ok";
+ }
}
?> \ No newline at end of file