How to put custom content like a linebreak inside p:column header

后端 未结 4 1289
执念已碎
执念已碎 2021-01-03 03:04

In my application, I have the following :

\"data

The 2nd column

4条回答
  •  执念已碎
    2021-01-03 03:25

    First of all, you need to remove the headerText attribute from the column and add a header facet inside it:

    /*  no_of_sessions = Number of 
     Sessions  */
    
        
            
        
        ...
    
    

    The escape="false" is relevant so html is escaped, then you can put anything you want in there. If you just want to style content, this is not needed

提交回复
热议问题