selectedTab - Selected Tab
Identifies the tab that gets initial focus in a tabbed panel.
Category
basicsSyntax
selectedTab="id"
Where id
is
the identifier of a tabPanel
element in the tabbed
panel.Usage
In Design mode, click the top tab under Properties and look for Tab opened by default, or click All Properties and look for selectedTab under basics.Examples
This Tabbed Panel control puts initial focus on the first tab.<xp:tabbedPanel id="tabbedPanel1" selectedTab="tabPanel1">
<xp:tabPanel id="tabPanel1" label="Day">
<xp:inputText id="inputText2"
value="#{document1.phoneday}">
</xp:inputText>
</xp:tabPanel>
<xp:tabPanel label="Night" id="tabPanel2">
<xp:inputText id="inputText3"
value="#{document1.phonenight}">
</xp:inputText>
</xp:tabPanel>
</xp:tabbedPanel>