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] }] };