Skip to content

Webparts

Find WeParts

Design

Localization

Version

Properties

Edit Mode

spPageContextInfo

In the F12 Developer Console, you can call

window.spModuleLoader._bundledComponents["b6917cb1-93a0-4b97-a84d-7cf49975d4ec"].PageManager._instance.pageContext.legacyPageContext

Dynamic default properties

Group WebPart

News WebPart

Highlighted Content Web Part (HCWP)

Document Library WebPart

Help / Tutorial WebPart

Samples

Project WebParts

Isolated WebParts

Filtering WebParts

Send Mail

External Lib

Config Variables

Create PDF

CAML Query

Terms Sets

Reusable React control

Share Data in WebPart

Dynamic Load WebPart

Samples/Exercises

Overview Modern WebParts

Available WebParts

Modern Pages

CSS Tips

Rest Call

CORS

Products

Package bundling

Web accessibility (a11y)

Redirecting

Dialog

Wiki Pages

Replacing the out of the box web part

Connect-PnPOnline https://tenantname-admin.sharepoint.com
$ctx = Get-PnPContext
$tenant = New-Object -TypeName "Microsoft.Online.SharePoint.TenantAdministration.Tenant" -ArgumentList $ctx
# Get existing list of blocked web parts
$ids = @($tenant.DisabledWebPartIds)
# Add the id for the out of the box Divider web part
$ids += [Guid]'2161a1c6-db61-4731-b97c-3cdb303f7cbb'
$ids = $ids | Where-Object {$_}
$tenant.DisabledWebPartIds = $ids
$tenant.Update()
Invoke-PnPQuery

Office Add-in