0

I've created a SPFx solution where it is not automatically available in all sites. It's been added to App Catalog.

  • Enabled - Yes
  • Deployed - Yes
  • Added to all sites - No

Though it is possible to add the web part via the UI. I'm using Site Scripts to add to site when a workflow provisions the site. However, it is also possible for a Site Owner to add this web part to any site as it's available in the UI.

Is it possible to not display it within the UI?

1 Answer 1

1

To hide the web part from the web part toolbox, you can set the hiddenFromToolbox property to true in the web part manifest:

"hiddenFromToolbox": true,

Documentation: Hide a web part from the toolbox

2
  • Thanks, the above hides it from the toolbox. Is it possible to not make it available when the user selects 'Add App' or in the Site Contents ? - I only want it to be added programmatically. Feb 17, 2022 at 11:14
  • I am not sure if we can remove it from 'Add App' classic experience. Feb 17, 2022 at 12:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.