| 1 |
lars |
1 |
<com:TContent ID="body" >
|
|
|
2 |
|
|
|
3 |
<h1>TTabPanel</h1>
|
|
|
4 |
<com:DocLink ClassPath="System.Web.UI.WebControls.TTabPanel" />
|
|
|
5 |
|
|
|
6 |
<p>
|
|
|
7 |
<tt>TTabPanel</tt> displays a tabbed panel. Users can click on the tab bar to switching among different tab views. Each tab view is an independent panel that can contain arbitrary content.
|
|
|
8 |
</p>
|
|
|
9 |
|
|
|
10 |
<p>
|
|
|
11 |
A <tt>TTabPanel</tt> control consists of one or several <tt>TTabView</tt> controls representing the possible tab views. At any time, only one tab view is visible (active), which is specified by any of the following properties:
|
|
|
12 |
</p>
|
|
|
13 |
|
|
|
14 |
<ul>
|
|
|
15 |
<li><tt>ActiveViewIndex</tt> - the zero-based integer index of the view in the view collection.</li>
|
|
|
16 |
<li><tt>ActiveViewID</tt> - the text ID of the visible view.</li>
|
|
|
17 |
<li><tt>ActiveView</tt> - the visible view instance.</li>
|
|
|
18 |
</ul>
|
|
|
19 |
|
|
|
20 |
<p>
|
|
|
21 |
If both <tt>ActiveViewIndex</tt> and <tt>ActiveViewID</tt> are set, the latter takes precedence.
|
|
|
22 |
</p>
|
|
|
23 |
|
|
|
24 |
<p>
|
|
|
25 |
<tt>TTabPanel</tt> uses CSS to specify the appearance of the tab bar and panel. By default, an embedded CSS file will be published which contains the default CSS for <tt>TTabPanel</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>TTabPanel</tt>:
|
|
|
26 |
</p>
|
|
|
27 |
|
|
|
28 |
<ul>
|
|
|
29 |
<li><tt>CssClass</tt> - the CSS class name for the outer-most div element (defaults to 'tab-panel');</li>
|
|
|
30 |
<li><tt>TabCssClass</tt> - the CSS class name for nonactive tab div elements (defaults to 'tab-normal');</li>
|
|
|
31 |
<li><tt>ActiveTabCssClass</tt> - the CSS class name for the active tab div element (defaults to 'tab-active');</li>
|
|
|
32 |
<li><tt>ViewCssClass</tt> - the CSS class for the div element enclosing view content (defaults to 'tab-view');</li>
|
|
|
33 |
</ul>
|
|
|
34 |
|
|
|
35 |
<p>
|
|
|
36 |
To use TTabPanel, write a template like following:
|
|
|
37 |
</p>
|
|
|
38 |
|
|
|
39 |
<com:TTextHighlighter Language="prado" CssClass="source">
|
|
|
40 |
<com:TTabPanel>
|
|
|
41 |
<com:TTabView Caption="View 1">
|
|
|
42 |
content for view 1
|
|
|
43 |
</com:TTabView>
|
|
|
44 |
<com:TTabView Caption="View 2">
|
|
|
45 |
content for view 2
|
|
|
46 |
</com:TTabView>
|
|
|
47 |
<com:TTabView Caption="View 3">
|
|
|
48 |
content for view 3
|
|
|
49 |
</com:TTabView>
|
|
|
50 |
</com:TTabPanel>
|
|
|
51 |
</com:TTextHighlighter>
|
|
|
52 |
|
|
|
53 |
<com:RunBar PagePath="Controls.Samples.TTabPanel.Home" />
|
|
|
54 |
|
|
|
55 |
<div class="last-modified">$Id: TabPanel.page 2075 2007-07-25 15:43:06Z xue $</div></com:TContent>
|