This repository was archived by the owner on Oct 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
sp webpart base.basewebpartcontext
John Nguyen edited this page Apr 22, 2021
·
2 revisions
Home > @microsoft/sp-webpart-base > BaseWebPartContext
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 BaseComponentContextExtends: BaseComponentContext
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.
| 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. |