Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Can we specify a minimum height for a lightning:datatable/lightning-datatable?

It is a little bit fragile since it relies on the SLDS style class slds-table_header-fixed_container but this sets an (exaggeratedly large) min-height on the header div that gets rendered into the markup for the table.

.THIS .slds-table_header-fixed_container {
    min-height: 12em;
}

enter image description here

Tags:

Css

Lightning Aura Components

Lightning Datatable

Lightning Web Components

Related

Do Apex Transaction have a unique Id (like Batch Ids)? Is MIXED_DML_OPERATION in unit tests broken? When passing in a collection of sObjects to a Queueable what values are used? Make a Lightning Button Download a .html Report Is 'id' a reserved keyword in Salesforce? Map<String, Object> in AuraEnabled now failing in Spring 19 with "Value provided is invalid for action parameter" Allow simultaneous writes to the same Data Extension How to push code to production with Visual Studio Code & DX How to load configuration from custom meta data Not able to render dynamic Lightning Web Component Lightning Web Component -- Lightning bundles must have a parent folder named ! 'lightningcomponents' Experimental support for decorators is a feature that is subject to change in a future release

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy