DojoContentPane

The DojoContentPane defines the content of a tab pane. You must use this widget with either the DojoAccordionContainer or DojoTabContainer widgets.

Properties

children
Specifies the contents on the tab pane, such as an EGL box widget
closable
Indicates whether the tab can be closed. Valid values are true and false.
selected
Indicates the tab that is initially active when the page is displayed. Valid values are true and false. If true is specified for multiple tabs, the last tab with selected=true is displayed.
title
The name that is displayed on the tab

Example

The following example shows the code and outcome for the DojoTabContainer and DojoContentPane widgets.


blueBox Box {background="#0099FF",height="100%",columns=1, 
             children = [new HTML {marginLeft=10, paddingTop=11,
                                   text = "List of townhouses "}

DojoTabContainer {width="100%",height=300,
             tabPosition=positionCombo.values[positionCombo.selection], 
             onTabSelected ::= TabSelected,onTabRemoved ::= TabRemoved,
                children =[
                   new DojoContentPane {title="Apartments",children=[yellowDiv] },
                   new DojoContentPane {title="Houses",closable=true,children=[orangeDiv] },
                   new DojoContentPane {title="Townhouses",selected=true,children=[blueBox] }]
								};

Example of three tabs.

Feedback