Change Webpart Theme Dynamically on Section Change

Copper Contributor

I recently had to write some webparts that adapted to the theme (Section backgrounds etc)

 

I have put together a little demo on how to change a webparts theme elements on a section change event (e.g. When User changes the background)

 

Video link here: https://www.youtube.com/watch?v=d-XF1uFwTN0

 

Source Code here: https://github.com/Yorcloud/spfx-dynamic-theme-demo

 

I hope you find it useful

 

Thanks


Rob

 

0 Replies