function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
test777test777 

creating tabs in vf page

Hi All,

     i want to create tab in vf page.Suppose i want to place custom account tab.when we click on that tab .vf page with with new button appears.Any can u please help me that.

 

Thanks in advance.

kritinkritin

See the below code line it will help you to create an VF page which contains Tab view..and each Tab can also have different Custom VF Page...

 

<apex:page standardController="Account" showHeader="true"
      tabStyle="account" extensions="OrderDetailController">
   <style>
      .activeTab {background-color: #236FBD; color:white;
         background-image:none}
      .inactiveTab { background-color: lightgrey; color:black;
         background-image:none}
   </style>
   <apex:tabPanel switchType="client" selectedTab="tabHoldings"
                  id="AccountTabPanel" tabClass="activeTab"
                  inactiveTabClass="inactiveTab">
      <apex:tab label="Holdings" name="Holdings" id="tabHoldings">
         <iframe src="/apex/CustomVFPage?id={!AccountId}" width="100%" height="300">
            <p>Your browser does not support iframes.</p>
        </iframe>
      </apex:tab>                    
   </apex:tabPanel>
</apex:page>