So, I have a problem with my datatable width. I use actual version of PF: 5.1.
When I try to set width: auto and scrollable = true I have problem whit table header alignment.
|Header 1____|Header 2____|Header3_____|
|Column 1____|Column 2________|Column 3_________|
My code:
<p:dataTable value="#{cc.attrs.rowList}"
var="row"
scrollable="true"
tableStyle="font-size: 13px;
width: auto;
min-width: 100%;">
<p:columns value="#{cc.attrs.headerList}"
var="column">
<f:facet name="header">
#{column.name}
</f:facet>
<h:outputText value="#{row[column.name]}"/>
</p:columns>
</p:dataTable>
Aucun commentaire:
Enregistrer un commentaire