0

Primeng2 wordwrap on columns fails to work.

Am trying to break columns with long sentences to new lones but this fails

          <p-dataTable [value]="tcentercomment"
                   [responsive]="true" #dt2
                    resizableColumns="true" columnResizeMode="expand"  >

            <p-column field="item_id" [styleClass]="break-column" header="Item" [sortable]="true" [filter]="false"></p-column>
            <p-column field="message" [styleClass]="break-column" header="Comment passed" [sortable]="true" [filter]="false"></p-column>

        </p-dataTable>

In my css

.break-column, .ui-cell-data{
    word-wrap: break-word;        
    width: 100%;
}

But with long columns the data doesnt break to a new line.

BillF
  • 804
  • 10
  • 20
Geoff
  • 6,277
  • 23
  • 87
  • 197

0 Answers0