Thursday, April 2, 2015

Align the contents using af:panelGroupLayout

Want to align the contents using af:panelGroupLayout ?


Use the following code snippet to horizontally right align the contents:

<af:panelGroupLayout id="vinaypgl01" width="400px" layout="horizontal" halign="right">
<af:outputText id="vinayot01"> This line will be right aligned.</af:outputText>
</af:panelGroupLayout>

Use the following code snippet to horizontally center align the contents:

<af:panelGroupLayout id="vinaypgl01" width="400px" layout="horizontal" halign="center">
<af:outputText id="vinayot01"> This line will be center aligned.</af:outputText>
</af:panelGroupLayout>