Full Screen Functionality on initial load

BeeWhoop 26 Reputation points
2022-07-28T23:23:37.817+00:00

I have a webpart that I would like to show full screen when the user clicks on the app page. Right now, the user clicks on the page and shows the navigation and Edit button by default. I'd like to know how to disable both of these elements so when the can have a full screen view of my webpart.

Microsoft 365 and Office SharePoint Development
Microsoft 365 and Office SharePoint For business Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2022-07-29T09:51:10.14+00:00

    Hi @BeeWhoop ,
    The first thing to confirm with you is that you want to display the web part in full screen, or the page with the web part in full screen?
    There is no way to display a web part in full screen.
    The following are the steps to realize the full screen display of the page as soon as it is clicked:

    1. Edit page -> Add a Script Editor web part.
      226059-image.png
    2. Edit web part -> EDIT SNIPPET.
    3. Add follow codes :txt

    ===========================================

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.