Skip to content

Latest commit

 

History

History

commandbar-hide-all

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Hide All Buttons on Command Bar

Summary

Hide everything that can be hidden on the command bar. My use case was to embed a summary into a SharePoint page using an iFrame and keep things as clean as possible.

screenshot of the sample

View requirements

  • You'll want this to be it's own list view, so the hidden buttons aren't more difficult to access when you actually need them.

Sample

Solution Author(s)
commandbar-hide-all.json gitjego

Version history

Version Date Comments
1.0 December 24, 2024 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Additional notes

The buttons to be hidden must be explicitly named, and it is likely that there will be new buttons that need to be hidden in new releases from Microsoft. This code currently hides everything listed in Microsoft's Documentation. Refer to this if you are seeing commands not be hidden, and add a line as needed. If you can find a way to hide the viewSelector, please pull request. :)