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

sp webpart base.baseclientsidewebpart.width

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

Home > @microsoft/sp-webpart-base > BaseClientSideWebPart > width

BaseClientSideWebPart.width property

This propery returns the width of the container for the web part.

Signature:

protected get width(): number;

Remarks

Web parts should utilize this property to perform operations such as any conditional styling of components based on the initial available width for the web part.

Clone this wiki locally