You need to sign in to do that
Don't have an account?
test777
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.
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>