All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sections.exporter.columnAlignments.xhtml Maven / Gradle / Ivy

There is a newer version: 1.1.0.6-jre15
Show newest version


    
        
            
        
        
            The datatable columns content will be justified as left aligned,center aligned and right aligned based on the content type.
            For example, numeric data will be right aligned and text data will be left aligned etc.
            

To export the datatable content with required alignments we have to specify the alignments in the style attributes as below

  • < h:outputText value="center aligned content" style="center" >
  • < h:outputText value="left aligned content" style="float:left" >
  • <h:outputText value="right aligned content" style="float:right" >

Default Alignments for header or footer :Center

Default Alignments for cell: Left

Note: Style attribute value should contain left,center or right values. A typically example is Message table and it's details table. ${showcase:getFileContent('/sections/exporter/example-columnAlignments.xhtml')} ${showcase:getFileContent('/org/primefaces/extensions/showcase/controller/exporter/MessageTableController.java')}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy