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
shan876shan876 

Can I do Tabs in VF?

Hi all:

   I was wondering, if this can be done and how?

I have 2 VF Pages that contains graphs.. One for Daily and one for Monthly.

It is placed into the Account Page Layout

But instead of two columns in the page layout.. I was wondering if I can 

  • Build a tab GUI and let the user choose which they want to see on the account page ...
  • Daily graph or Monthly Graph...

Could this be done? Does anyone have an example of this?

Thanks

Shan

Best Answer chosen by Admin (Salesforce Developers) 
MATTYBMEMATTYBME

Try this section:

 

 

<apex:tabPanel > <apex:tab label="Daily Graph"> </apex:tab> <apex:tab label="Monthly Graph"> </apex:tab> </apex:tabPanel>

 Pleace your graph code for daily inside tab tags and same for month.

 

All Answers

MATTYBMEMATTYBME

Try this section:

 

 

<apex:tabPanel > <apex:tab label="Daily Graph"> </apex:tab> <apex:tab label="Monthly Graph"> </apex:tab> </apex:tabPanel>

 Pleace your graph code for daily inside tab tags and same for month.

 

This was selected as the best answer
shan876shan876
You saved me... Thanks...
SteveAnderson41SteveAnderson41
For more details on using tab panels, see the tabPanel documentation in the Visualforce Developer Guide.  Also, there's a really great example in the cookbook, titled, "Creating Tabbed Accounts".