Determine maximum height of a column title in Primefaces

3

I wonder if you can do the following:

I need to% define a maximum height of a column. Because there are some that the text is too long and the value of the column is a Yes or No, so the title becomes too large. Then I thought about the possibility of breaking the title, but with a maximum height. So the text would look the size that would be ideal.

    
asked by anonymous 28.08.2014 / 20:27

1 answer

0

To do what you asked, just set max-height in your column's column by setting the maximum size in pixels.

<p:column ... style="max-height: 50px" >

But in the case you cited above I would recommend putting an abbreviation in the header line and the title property would put the full text. That way when the user hover over the header the full text will appear. Ex:

<h:outputText value="Pode alterar" title="Permissão para alterar os dados cadastrais do cliente" />
    
12.05.2015 / 14:13