I have an application that shows the PDF documents that are in a SharePoint directory, showing their titles and clicking on the title allows you to view them with PDF Viewer.
However, there are times when there are no PDF documents to view in a folder and you see the window in gray as I show in the photo.
This causes confusion for the user, since they believe that the titles are not loading.
How can I only display the PDF viewer container if there is a PDF document title to display?
Example screen without documents to see:
Example screen with a document to see:


Report
All responses (
Answers (