Wednesday, 11 September 2013

Set PrimeFace Datatable Column Width

Set PrimeFace Datatable Column Width

I am trying to set the column widths of my data table. I have looked at
this question for an answer PrimeFaces 3.0 - How to set width of a
<p:column> in a <p:dataTable>.
I am however trying to do something a little bit different. I only want
the column to be as wide as the widest element it it is displaying. Most
of my data is text.
So for example, it should not look like this
-----------------------------
| This is some text |
-----------------------------
It should look like this
---------------------
| This is some text |
---------------------

No comments:

Post a Comment