-1

how to wrap lwc lightning datatable header text, i'm already using wrapText: true, for table sorting its workig for table data but not for table header

<lightning-datatable data={pagedRecords} columns={columns} key-field="Id" hide-checkbox-column show-row-number-column="false" onrowselection={getSelectedName} onrowaction={handleRowAction} wrap-text-max-lines class="slds-max-medium-table_stacked custom-datatable">
</lightning-datatable>

i want to wrap lwc lightning datatable table header

1 Answer 1

0

wrap-table-header see if this works

https://developer.salesforce.com/docs/component-library/bundle/lightning-datatable/specification

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.