ONE DAY SALE

Free Salesforce Developers Tutorials >

Chapter 15 - Visualforce >

Tabs in Visualforce

Tabs in Visualforce

What You’ll Learn


S2 Labs

What Is Visualforce Tabs? 

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.

Example code for Tabs in Visualforce

<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>

In this <apex:tabPanel> tag is used in which each <apex:tab> tag consist of information to be displayed in the tab.

salesforce-developer

Download Study Material

Get access to exclusive study material for Salesforce Certification and ace your exams!

Download Now

Our Salesforce Certification Courses

Hey there! Glad you made it through our Salesforce Developer Training for beginners . But wait! We've got some high-in-demand Salesforce courses for you to take your Salesforce skills to the next level, making you a desired professional in the Salesforce job market.

Post a Comment

Your email address will not be published. Required fields are marked *