From 907d785046834eacb492a88a0eab9f349921de8d Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Sun, 3 Jul 2011 15:03:58 +0000 Subject: Rewoked TAccordion (fixes #340); added AnimationDuration parameter, added example in quickstart. --- .../pages/Controls/Samples/TAccordion/Home.page | 56 +++++++++++++++++++++- .../pages/Controls/Samples/TAccordion/Home.php | 10 ++++ 2 files changed, 65 insertions(+), 1 deletion(-) (limited to 'demos/quickstart/protected/pages/Controls') 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 @@

TAccordion Samples

+ + + + +
+A simple TAccordion populated with other controls: + + - +

View 1

@@ -25,4 +31,52 @@
+
+Two nested TAccordion; the external one has AnimationDuration=0, while the internal one has a fixed ViewHeight=100 + + + + +

+ Contents for view 1: a nested TAccordion control +

+ + + Contents for nested view A + + + Contents for nested view B + + + Contents for nested view C + + + Contents for nested view D + + +

+ More content for view 1 +

+
+ + +

+ Contents for view 2: a callback button +

+ +
+ + +

+ Contents for view 3: a postback button +

+ +
+ +
+
+A label to check postback/callback results: + 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 -- cgit v1.2.3