Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp webpart base.basewebpartcontext

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-webpart-base > BaseWebPartContext

BaseWebPartContext class

Web part context object. This object contains the contextual services available to a web part. e.g. a contextual instance to the http client.

This base is to be extended by UI-specific WebPart's base.

Signature:

export default class BaseWebPartContext extends BaseComponentContext

Extends: BaseComponentContext

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the BaseWebPartContext class.

Properties

Property Modifiers Type Description
formFactor WebPartFormFactor (BETA) Form factor of the web part.
manifest IClientSideWebPartManifestInstance<any> Manifest for the client-side component.
propertyPane IPropertyPaneAccessor Accessor for common web part property pane operations.
webPartTag string Web part tag to be used for logging and telemetry.
Clone this wiki locally