SPFX Webpart - Page Property refresh event

%3CLINGO-SUB%20id%3D%22lingo-sub-1643937%22%20slang%3D%22de-DE%22%3ESPFX%20Webpart%20-%20Page%20Property%20refresh%20event%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1643937%22%20slang%3D%22de-DE%22%3E%3CP%3EI'm%20working%20on%20a%20SPFX%20web%20part%20that%20accesses%20the%20Page%20Properties%20of%20a%20Modern%20Page.%20%3CBR%20%2F%3E%20Is%20there%20a%20way%20to%20be%20notfied%20in%20Page%20Edit%20mode%20when%20a%20user%20modifies%20a%20Page%20Property.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%3A%3C%2FP%3E%3CP%3EThe%20users%20selects%20a%20different%20value%20from%20a%20dropdown%20list%20in%20Page%20edit%20mode%20and%20my%20webparts%20needs%20to%20be%20notfied%20that%20the%20property%20has%20changed%20to%20access%20the%20new%20value.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThe%20page%20properties%20webpart%20correctly%20refreshes%2C%20but%20could'nt'i%20figure%20out%2C%20how%20this%20works.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I'm working on a SPFX Webpart that accesses the Page Properties of a Modern Page.
Is there a way to be notfied in Page Edit mode when a user modifies a Page Property.

 

For example:

The users selects a different value from a dropdown list in Page edit mode and my webparts needs to be notfied that the property has changed to access the new value. 


The page properties webpart correctly refreshes, but i couldn't figure out, how this works.

0 Replies