Add option to hide the "List" web part if there's no data
Currently there is no option to hide the "List" web part if there is no data, similar to the setting "Hide this web part if there's nothing to show" that is available in the highlighted content web part.
We have a list of "alerts/messages" that should be displayed on home page, when it satisfies a filter condition like "show on home page == true".
We created a new view on this list with view formatting and custom row layout to display the alerts.
We added a "List" web part on the home page of our site and configured the web part to use the above view.
When there are no items to display, then the list web part defaults to rendering a huge section with an icon and a message "click to add new items" that takes up a lot of space. This makes the web part unusable.
There is no option to hide the "Title" or "Header" of the list web part. If the title is removed from properties, it defaults to the list name. In use cases like above we would just like to display items without any title.
Marius Mockert commented
Yes, please. I have the same problems. The users are too confused when there's such a message on the landing page.
I'd like something similar to the "Highlighted content" Web Part with the "Hide this web part if there's nothing to show" option, for any web part that could be "empty". This would be useful on web parts like the Events Web Part and the Countdown Timer ("Hide this web part when the timer runs out").
The same concept could be added to a Section "Hide this section if the selected web part has nothing to show", and add a Web Part selector. As an example, if an Events Web Part had nothing to show, the entire section would hide.