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

sp webpart base.basewebpart.ondisplaymodechanged

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

Home > @microsoft/sp-webpart-base > BaseWebPart > onDisplayModeChanged

BaseWebPart.onDisplayModeChanged() method

This event method is called when the display mode of a web part is changed. virtual

Signature:

protected onDisplayModeChanged(oldDisplayMode: DisplayMode): void;

Parameters

Parameter Type Description
oldDisplayMode DisplayMode The old display mode.

Returns:

void

Remarks

If the web part is initialized or re-initialized in a different display mode then this lifecycle method is not called.

Clone this wiki locally