I am using a primeNg table with columns headers which needs to have break-word into two line. So far, I tried css like the following
.ui-dataTable thead h {
word-wrap: break-word !important;
}
.break-word {
word-wrap: break-word !important;
}
HTML code
<ng-template pTemplate="header">
<tr>
<th class="break-word" *ngFor="let column of columns" pSortableColumn={{column.field}}>{{column.name}} <p-sortIcon field={{column.field}}></p-sortIcon></th>
</tr>
</ng-template>
I even went to the forum.primefaces.org but that css suggestion did not work.
Thanks for any help.