summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/quickstart/protected/pages/Controls/Accordion.page55
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.page28
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TAccordion/Home.php7
-rw-r--r--demos/quickstart/protected/pages/Controls/Standard.page4
4 files changed, 94 insertions, 0 deletions
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 @@
+<com:TContent ID="body" >
+
+<h1>TAccordion</h1>
+<com:DocLink ClassPath="System.Web.UI.WebControls.TAccordion" />
+
+<p class="block-content">
+<tt>TAccordion</tt> 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.
+</p>
+
+<p class="block-content">
+A <tt>TAccordion</tt> control consists of one or several <tt>TAccordionView</tt> 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:
+</p>
+
+<ul>
+<li><tt>ActiveViewIndex</tt> - the zero-based integer index of the view in the view collection.</li>
+<li><tt>ActiveViewID</tt> - the text ID of the visible view.</li>
+<li><tt>ActiveView</tt> - the visible view instance.</li>
+</ul>
+
+<p class="block-content">
+If both <tt>ActiveViewIndex</tt> and <tt>ActiveViewID</tt> are set, the latter takes precedence.
+</p>
+
+<p class="block-content">
+<tt>TAccordion</tt> 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 <tt>TAccordion</tt>. You may also use your own CSS file by specifying the <tt>CssUrl</tt> property. The following properties specify the CSS classes used for elements in a <tt>TAccordion</tt>:
+</p>
+
+<ul>
+<li><tt>CssClass</tt> - the CSS class name for the outer-most div element (defaults to 'accordion');</li>
+<li><tt>HeaderCssClass</tt> - the CSS class name for nonactive accordion div elements (defaults to 'accordion-header');</li>
+<li><tt>ActiveHeaderCssClass</tt> - the CSS class name for the active accordion div element (defaults to 'accordion-header-active');</li>
+<li><tt>ViewCssClass</tt> - the CSS class for the div element enclosing view content (defaults to 'accordion-view');</li>
+</ul>
+
+<p class="block-content">
+To use TAccordion, write a template like following:
+</p>
+
+<com:TTextHighlighter Language="prado" CssClass="source block-content" >
+ &lt;com:TAccordion>
+ &lt;com:TAccordionView Caption="View 1">
+ content for view 1
+ &lt;/com:TAccordionView>
+ &lt;com:TAccordionView Caption="View 2">
+ content for view 2
+ &lt;/com:TAccordionView>
+ &lt;com:TAccordionView Caption="View 3">
+ content for view 3
+ &lt;/com:TAccordionView>
+ &lt;/com:TAccordion>
+</com:TTextHighlighter>
+
+<com:RunBar PagePath="Controls.Samples.TAccordion.Home" />
+
+</com:TContent>
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 @@
+<com:TContent ID="body">
+<h1>TAccordion Samples</h1>
+
+<com:TAccordion>
+ <com:TAccordionView ID="View1" Caption="View 1" Height="200px">
+ <h2>View 1</h2>
+ </com:TAccordionView>
+
+ <com:TAccordionView ID="View2" Caption="View 2">
+ <h2>View 2</h2>
+ <p>Please choose a color:</p>
+ <com:TDropDownList ID="DropDownList">
+ <com:TListItem Value="Red" />
+ <com:TListItem Value="Blue" />
+ <com:TListItem Value="Green" />
+ </com:TDropDownList>
+ </com:TAccordionView>
+
+ <com:TAccordionView Caption="View 3">
+ <h2>View 3</h2>
+ <p>
+ Click on the following button to see if we keep your input after postback.
+ </p>
+ <com:TButton Text="Submit" />
+ </com:TAccordionView>
+</com:TAccordion>
+
+</com:TContent>
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 @@
+<?php
+
+class Home extends TPage
+{
+}
+
+?> \ 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
@@ -4,6 +4,10 @@
<p id="260001" class="block-content">* the tutorial for this control is not completed yet.</p>
<ul id="u1" class="block-content">
<li>
+ <a href="?page=Controls.Accordion">TAccordion</a> displays an accordion consisting of multiple views. At any time, only one view is visible.
+ </li>
+
+ <li>
<a href="?page=Controls.Button">TButton</a> represents a click button on a Web page. It is mainly used to trigger page postback.
</li>