Created
February 23, 2017 08:26
-
-
Save sankaran1984/5346073d4048660548d91caf5566687a to your computer and use it in GitHub Desktop.
Visualforce - Beyond Basics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page standardController="Opportunity" recordSetVar="Opps"> | |
<style> | |
.ReqHelpText { | |
display : inline-block; | |
width : 3px; | |
background-color : #c00; | |
} | |
</style> | |
<apex:sectionHeader title="Opportunities"/> | |
<apex:form> | |
<apex:pageBlock> | |
<apex:pageBlockTable value="{!Opps}" var="opp"> | |
<apex:column> | |
<apex:inputField value="{!Opp.Name}"/> | |
<apex:facet name="header"> | |
<apex:outputPanel> | |
<apex:outputText value="Opportunity Name - "/> | |
<apex:outputText value=" " escape="false" styleClass="ReqHelpText"/> | |
<apex:outputText value=" It is a Required Field"/> | |
</apex:outputPanel> | |
</apex:facet> | |
</apex:column> | |
<apex:column value="{!Opp.StageName}"/> | |
<apex:column value="{!Opp.IsClosed}"/> | |
</apex:pageBlockTable> | |
</apex:pageBlock> | |
</apex:form> | |
</apex:page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment