15

Tabs in Visualforce

Tabs in vf page are used to display content like the way standard tabs do. Each tab do consist of its individual section, which is display some content. To create a tab like view, we use <apex:tabPanel> and <apex:tab> tags.

<apex:page>
    <apex:tabPanel switchType="client">
        <apex:tab label="Tab 1">
            <!-- Content for Tab 1 -->
        </apex:tab>
        
        <apex:tab label="Tab 2">
            <!-- Content for Tab 2 -->
        </apex:tab>
        
        <apex:tab label="Tab 3">
            <!-- Content for Tab 3 -->
        </apex:tab>
    </apex:tabPanel>
</apex:page>

salesforce-developer
Next Topic

Need more support?

Get a head start with our FREE study notes!

Learn more and get all the answers you need at zero cost. Improve your skills using our detailed notes prepared by industry experts to help you excel.

ServiceNow Stripe