Skip to main content

Posts

Showing posts with the label Adding Style to pageblock table row

Adding Conditional Style Sheet To Particular Row On Pageblock Table

Hi All, This post is regarding for adding style sheet on a particular table row. Here I am sharing some example where table row is yellow,if account Type is Prospect. This is my page <apex:page controller="conditionalStyleController">     <apex:form >         <apex:pageBlock title="Accoiunt Table">             <apex:pageBlockTable value="{!listOfAccounts }" var="account">                 <apex:column value="{!account.Name}" style="{!if(account.Type='Prospect','background-color:yellow;', 'color:black')}"/>                                                ...