From 3b7fe6b02f47ab6af284b6a188632cc1622e86cc Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 8 Jun 2011 16:33:16 +0000 Subject: added accordion control from #213 --- .../protected/pages/Controls/Accordion.page | 55 ++++++++++++++++++++++ .../pages/Controls/Samples/TAccordion/Home.page | 28 +++++++++++ .../pages/Controls/Samples/TAccordion/Home.php | 7 +++ .../protected/pages/Controls/Standard.page | 4 ++ 4 files changed, 94 insertions(+) create mode 100644 demos/quickstart/protected/pages/Controls/Accordion.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.php (limited to 'demos/quickstart/protected') diff --git a/demos/quickstart/protected/pages/Controls/Accordion.page b/demos/quickstart/protected/pages/Controls/Accordion.page new file mode 100644 index 00000000..c4637c4b --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Accordion.page @@ -0,0 +1,55 @@ + + +

TAccordion

+ + +

+TAccordion displays an accordion control. Users can click on the view headers to switch among different accordion views. Each accordion view is an independent panel that can contain arbitrary content. +

+ +

+A TAccordion control consists of one or several TAccordionView controls representing the possible accordion views. At any time, only one accordion view is visible (active), which is specified by any of the following properties: +

+ + + +

+If both ActiveViewIndex and ActiveViewID are set, the latter takes precedence. +

+ +

+TAccordion uses CSS to specify the appearance of the accordion headers and panels. By default, an embedded CSS file will be published which contains the default CSS for TAccordion. You may also use your own CSS file by specifying the CssUrl property. The following properties specify the CSS classes used for elements in a TAccordion: +

+ + + +

+To use TAccordion, write a template like following: +

+ + + <com:TAccordion> + <com:TAccordionView Caption="View 1"> + content for view 1 + </com:TAccordionView> + <com:TAccordionView Caption="View 2"> + content for view 2 + </com:TAccordionView> + <com:TAccordionView Caption="View 3"> + content for view 3 + </com:TAccordionView> + </com:TAccordion> + + + + +
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.page new file mode 100644 index 00000000..2c862fb7 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.page @@ -0,0 +1,28 @@ + +

TAccordion Samples

+ + + +

View 1

+
+ + +

View 2

+

Please choose a color:

+ + + + + +
+ + +

View 3

+

+ Click on the following button to see if we keep your input after postback. +

+ +
+
+ +
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.php new file mode 100644 index 00000000..badbca73 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Standard.page b/demos/quickstart/protected/pages/Controls/Standard.page index b008acc8..54d631e4 100644 --- a/demos/quickstart/protected/pages/Controls/Standard.page +++ b/demos/quickstart/protected/pages/Controls/Standard.page @@ -3,6 +3,10 @@

Standard Controls

* the tutorial for this control is not completed yet.