Sp-dev-docs: Formatting list views hideColumnHeader doesn't work on List webpart

Created on 4 Feb 2020  路  8Comments  路  Source: SharePoint/sp-dev-docs

Category

  • [x ] Question
  • [ ] Typo
  • [ ] Additional article idea

Question

In SharePoint Online, Is there a way to hide the columns header of a formatted list view when displaying in the List webpart

Environment details

  • Platform: SharePoint Online
list-formatting duplicate question

All 8 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

You could deploy react-script-editor to hide the header when you add list to modern page by List webpart

<style>
div.ms-DetailsList-headerWrapper{
display:none;
}
</style>

image

Lee
Microsoft SharePoint Community Support

Thanks! I'm guessing that's not a supported customisation? Meaning, any updates from Microsoft to the platform could rollback this change

@panggio Correct. This wouldn't be a supported customization and could break in the future.

@bcameron1231 @thechriskent This isn't possible today with view formatting, correct?

@andrewconnell hideColumnHeader should remove the headers. This is a recent bug re-introduced, and looks to be a duplicate of #5226

Closing this issue as a dupe. Please refer to our wiki for more details: Issue List Labels: status:duplicate

The issue is now fixed.

Was this page helpful?
0 / 5 - 0 ratings