Expand Minimize

SPF019916: Specify Web Part image

The Web Part manifest must specify a Web Part image

CheckId SPF019916
TypeName SpecifyWebPartImage
Severity CriticalError
Type Web Part Manifest

Each group of preconfigured entries in the Web Part manifest should specify a Web Part image either using the officeFabricIconFontName or the iconImageUrl property (but not both). When using the iconImageUrl property ensure that the URL is an absolute URL that points to a valid image.

Web Part image set using the officeFabricIconFontName property (MyWebPart.manifest.json):

  "$schema": "../../../node_modules/@microsoft/sp-module-interfaces/lib/manifestSchemas/jsonSchemas/clientSideComponentManifestSchema.json",

  "id": "8908df13-a965-4445-9c48-ecec77c44be4",
  "alias": "WeatherWebPart",
  "componentType": "WebPart",
  "version": "0.0.1",
  "manifestVersion": 2,

  "preconfiguredEntries": [{
    "groupId": "8908df13-a965-4445-9c48-ecec77c44be4",
    "group": { "default": "Default" },
    "title": { "default": "Weather" },
    "description": { "default": "Shows weather for the given place" },
    "officeFabricIconFontName": "Sunny",
    "properties": {
      "location": ""

Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.