At times you may want to set a minimum height and/or a maximum height for an Lightning Web Component Datatable. The documentation may lead you to believe that you cannot accomplish this but with some CSS3 you definitely can. If you go to the LWC Datatable docs you will see that you can try our your code in Lightning Mini Playground by using the following code:

The above code can also be found in this sandbox WebComponent:

Let me know what you think and as always, happy coding! šŸ˜Ž

Categories: BlogJavaScriptSalesforce

Leave a Reply

Your email address will not be published. Required fields are marked *