Detect if Property Pane is open for the current Web Part

%3CLINGO-SUB%20id%3D%22lingo-sub-2211472%22%20slang%3D%22en-US%22%3EDetect%20if%20Property%20Pane%20is%20open%20for%20the%20current%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2211472%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20SharePoint%20page%20with%20several%20instances%20of%20a%20same%20SPFx%20Web%20Part.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20my%20SPFx%20code%20detect%20if%20the%20Property%20Pane%20is%20open%20for%20the%20current%20instance%20of%20my%20Web%20Part%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20found%20properties%20such%20as%20displayMode%20or%20isPropertyPaneOpen%2C%20but%20they%20toggle%20at%20the%20page%20level%2C%20not%20at%20the%20Web%20Part%20level.%20For%20example%2C%20when%20the%20Property%20Pane%20is%20open%2C%20all%20Web%20Parts%20on%20the%20page%20have%26nbsp%3BisPropertyPaneOpen%3Dtrue.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2211472%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EProperty%20Pane%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESPFx%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Frequent Contributor

I have a SharePoint page with several instances of a same SPFx Web Part.

 

How can my SPFx code detect if the Property Pane is open for the current instance of my Web Part?

 

I have found properties such as displayMode or isPropertyPaneOpen, but they toggle at the page level, not at the Web Part level. For example, when the Property Pane is open, all Web Parts on the page have isPropertyPaneOpen=true.

0 Replies