Show the column heading in two rows in <apex: column>

I want to display the header of the apex: header in two lines. I have a column with a heading like "Distributed Total" that I want to show in two rows

<apex:column headerValue="Distributed Total$"> <apex:outputText value="${0, number, ###,##0.00}"> <apex:param value="{!item.Dtotal}"/> </apex:outputText> </apex:column> 

Any idea how we can achieve this

thanks

Pradeep

+4
source share
2 answers

If I understand the question, do you need a column header than 2 rows?

 <apex:column> <apex:facet name="header"> Distributed<br/>Total$ </apex:facet> <apex:outputText value="${0, number, ###,##0.00}"> <apex:param value="{!item.Dtotal}"/> </apex:outputText> </apex:column> 
+6
source

I would try playing with the <br/> tag.

0
source

All Articles