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>








1 comments:

sfdcmeghraj said...

section header icon is n ot visible in lightning experience. can you help me to fix it. i have also use svg in vf page but this provides icon name statically how can i use the icon on behalf of standard controller in lightning?
please mail me solution @:- deepakastrea@gmail.com

Post a Comment

 
| ,