This repository has been archived by the owner on Oct 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
sp webpart base.basewebpart.ondisplaymodechanged
John Nguyen edited this page Apr 22, 2021
·
2 revisions
Home > @microsoft/sp-webpart-base > BaseWebPart > onDisplayModeChanged
This event method is called when the display mode of a web part is changed. virtual
Signature:
protected onDisplayModeChanged(oldDisplayMode: DisplayMode): void;
Parameter | Type | Description |
---|---|---|
oldDisplayMode | DisplayMode | The old display mode. |
Returns:
void
If the web part is initialized or re-initialized in a different display mode then this lifecycle method is not called.