From e7bb0551bbe9c2d14e434e606b31225d9261a9c5 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 25 Jul 2007 15:43:06 +0000 Subject: Added quickstart tutorial for TTabPanel. --- .../pages/Controls/Samples/TTabPanel/Home.page | 40 ++++++++++++++++ .../pages/Controls/Samples/TTabPanel/Home.php | 7 +++ .../protected/pages/Controls/Standard.page | 3 ++ .../protected/pages/Controls/TabPanel.page | 55 ++++++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TTabPanel/Home.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TTabPanel/Home.php create mode 100644 demos/quickstart/protected/pages/Controls/TabPanel.page (limited to 'demos') diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTabPanel/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TTabPanel/Home.page new file mode 100644 index 00000000..dd084a47 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TTabPanel/Home.page @@ -0,0 +1,40 @@ + +

TTabPanel Samples

+ + + + +

View 1

+

+ This shows a nested tab panel. To ensure the property display, we explicitly + set the height of the outer view to be 200px. +

+ + + This is view 11. + + + +
+ + +

View 2

+

Please choose a color:

+ + + + + +
+ + +

View 3

+

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

+ +
+
+ +
$Id$
+
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTabPanel/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TTabPanel/Home.php new file mode 100644 index 00000000..badbca73 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TTabPanel/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 f04e61b7..287a5c5c 100644 --- a/demos/quickstart/protected/pages/Controls/Standard.page +++ b/demos/quickstart/protected/pages/Controls/Standard.page @@ -119,6 +119,9 @@ TTable represents an HTML table on a Web page. It is used together with TTableRow and TTableCell. +
  • + TTabPanel displays a tabbed panel consisting of multiple tab views. At any time, only one tab view is visible. +
  • TTextBox represents a text input field on a Web page. It can collect single-line, multi-line or password text input from users.
  • diff --git a/demos/quickstart/protected/pages/Controls/TabPanel.page b/demos/quickstart/protected/pages/Controls/TabPanel.page new file mode 100644 index 00000000..d85de681 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/TabPanel.page @@ -0,0 +1,55 @@ + + +

    TTabPanel

    + + +

    +TTabPanel 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. +

    + +

    +A TTabPanel control consists of one or several TTabView 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: +

    + + + +

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

    + +

    +TTabPanel 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 TTabPanel. 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 TTabPanel: +

    + + + +

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

    + + + <com:TTabPanel> + <com:TTabView Caption="View 1"> + content for view 1 + </com:TTabView> + <com:TTabView Caption="View 2"> + content for view 2 + </com:TTabView> + <com:TTabView Caption="View 3"> + content for view 3 + </com:TTabView> + </com:TTabPanel> + + + + +
    $Id$
    \ No newline at end of file -- cgit v1.2.3