This project is an SPFx application customizer built for Modern SharePoint sites / pages. It will place itself in the header placeholder of your site and show alerts from a list within your site. Check out the blog.
Rebuilt fresh on SPFx v1.13.1 so that it will support:
Environments
- Office 365
Browers
- Edge
- Chrome
- FireFox
This is just an interesting example of a site alerts that would be useful on your SharePoint intranet page. This would show users important announcements when they visit the home page. It can be set to show / expire based on dates and times.
- SPFx Development Environment
- Tenant App Catalog
- Node 14.x.x
- SPFx v1.13.1
The following steps assume that you've cloned this repository or downloaded the files and successfully installed all the dependencies using 'npm install'. Make sure to use the same version of node to get a successfull build.
- Build the SPFx Application Customizer
- Deploy the SPFx Application Customizer
- Add the App to your site
It is recommended to run the 'build.cmd' file from the projects root folder. This file does all the normal SPFx build commands such as build, bundle, package-solution. The 'build.cmd' also does a number of other things out of scope for guide. Please refer to the following blogs posts for more information on this file.
When the build script completes you will have the app package for modern sites located in './sharepoint/solution/alerts-header.sppkg'
Modern site deployment is straightforward. For more information about this process see official MS Docs
- Navigate to your tenant App Catalog
- Click Apps for SharePoint in the Quick Launch menu
- Click and drag the .sppkg file into the tenant App Catalog
Activation on a Modern site deployment is straightforward. For more information about this process see official MS Docs
- Navigate to your Modern site
- From the gear icon, click 'Add an App'
- In the left menu, click 'From your Organization'
- Click 'alerts-header-client-side-solution'
In a minute or two it will be activated on that modern site
This project was setup with three different styles: Alert, Actionable and Information. More types can be added with your own custom styles. Font Awesome is used for the fonts which provides plenty of free icons. Please read the blog post for more information blog.
It's super easy to use, once activated just add items to the list.
In Site Contents you'll see a new list called "Alerts" list, just add new list items.