A short Breakup what I wanna do in Spfx.

My goal is it to provide a custom-designed Sharepoint site based on the Users group.

The first step would be to hide all Webparts on the Side and then to display only the needed ones.

My first attempt was to create an Extention and get a reference to all Webparts.

My second attempt was to use JQuery in combination with CSS. I know this isn't something u wanna do, and this solution won't hold forever and may cause some other problems.

However, I have the following problem. My CSS Injection is applied late. When I hide a Webpart it gets first rendered for a second and then disappears.

Is there a Way to inject CSS before the page loads?

Any help would be appreciated, anyway have a nice Weekend!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.