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

sp webpart base.basewebpart._constructor_

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

Home > @microsoft/sp-webpart-base > BaseWebPart > (constructor)

BaseWebPart.(constructor)

Constructor for the BaseWebPart class.

Signature:

constructor();

Remarks

It is highly recommended that the web part use the OnInit API to perform any web part specific initialization. Most of the web part features like this.context and this.properties are not available to be used before the the onInit part of the web part loading lifecycle.

Clone this wiki locally