0

How can I make the column header in the LWC datatable to be wrapped as well ? wrapText:true only applies for the rows enter image description here

<lightning-datatable
            key-field="Id"
            data={contracts}
            columns={contractsColumns}
            max-row-selection="1"
            onrowselection={handleRowSelection}
        >
       </lightning-datatable>
2
  • There is a previous thread about this from 2020, have you tried this solution? Commented Apr 12, 2022 at 13:16
  • I'm looking for a simpler solution. I also tried it but didn't work
    – osos9
    Commented Apr 12, 2022 at 13:22

0

You must log in to answer this question.

Browse other questions tagged .