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

sp webpart base.basewebpartcontext.formfactor

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

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

BaseWebPartContext.formFactor property

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Form factor of the web part.

Signature:

get formFactor(): WebPartFormFactor;

Remarks

Web parts may behave differently based on its form factor. E.g. a web part rendering as full size may want to set up different margins that when rendering in a canvas.

Clone this wiki locally