Sunday, January 25, 2015

How to Use Apex:SectionHeader tag in Visualforce Page?

How to Use Apex:SectionHeader tag in Visualforce Page?


A title bar for a page. In a standard Salesforce page, the title bar is a colored header displayed directly under the tab bar.


This component supports HTML pass-through attributes using the "html-" prefix. Pass-through attributes are attached to the generated container <div> tag.


This tag supports following attributes.

Attribute Name
Description
description
Descriptive text for the page that displays just under the colored title bar.
help
A Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true.
id
An identifier that allows the sectionHeader component to be referenced by other components in the page.
printUrl
The URL for the printable view.
rendered
A Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true.
title
The text displayed at the top of the colored title bar.
subtitle
The text displayed just under the main title in the colored title bar.


Example:

<apex:page standardController="Opportunity" tabStyle="Opportunity" sidebar="false">
    <apex:sectionHeader title="One of Your Opportunities" subtitle="Exciting !"/>
    <apex:detail subject="{!opportunity.id}" relatedList="false" title="false"/>

</apex:page>








0 comments:

Post a Comment

 
| ,