What is a Single Part App Page?
A single part app page is nothing but a SharePoint Framework web part with a locked layout. This means when you make your web part as a single part app page, then the users cannot modify the page layout using the browser.
Make your existing web part as Single Part App Page
You can choose any of your existing web parts to make it as a single part app page, but you’ll have to decide when to use it as a single part app page.
In this example, I’ll use my previous code on "Creating a single page app in SPFx" which you can find here.
Step 1
Download the zipped source code and extract files.
Or you can also use your own web part code.
Step 2
Open the extracted folder in the code editor and navigate to the SinglePageAppWebPart.manifest.json file inside the “src” folder.
Step 3
In the “supportedHosts”, add “SharePointFullPage”
"supportedHosts": ["SharePointWebPart", "SharePointFullPage"],
Now, your manifest.json will look like this.
- {
- "$schema": "https://developer.microsoft.com/json-schemas/spfx/client-side-web-part-manifest.schema.json",
- "id": "2d3e8aa0-cc9c-405e-8f74-b74c03566a06",
- "alias": "SinglePageAppWebPart",
- "componentType": "WebPart",
- "version": "*",
- "manifestVersion": 2,
- "requiresCustomScript": false,
- "supportedHosts": ["SharePointWebPart", "SharePointFullPage"],
- "preconfiguredEntries": [{
- "groupId": "5c03119e-3074-46fd-976b-c60198311f70",
- "group": { "default": "Other" },
- "title": { "default": "SinglePageAPP" },
- "description": { "default": "SinglePageAPP description" },
- "officeFabricIconFontName": "Page",
- "properties": {
- "description": "SinglePageAPP"
- }
- }]
- }


Join the conversation! Your thoughts help the community grow.