Improving the Page Properties web part

Published Apr 06 2021 01:18 PM 2,411 Views
Regular Visitor

Ever get annoyed with the page properties web part put out by Microsoft? If you've got some OCD issues (like me) then it may not take very long. At ThreeWill, we help clients with their digital workplaces and improving the way their users can obtain information and makes sense of it all. Oftentimes, the Page Properties web part can be useful here, as we very often add valuable metadata to pages in a digital workplace, which we often tie to page templates as well. News might roll up based on these page properties, which can assist in finding information in many ways. But its often handy to display this metadata in a clean way on a page as well. The standard Page Properties web part seeks to do just that. And, for the most part, it does a fine job with it. But it has a few deficiencies. The most annoying thing to me, when setting up digital workplaces was that it only supports a white background. But there are other small things, like the limitations with pretty standard field types. I like the idea of taking advantage of metadata columns for pages, but being able to use it visually is equally important. I finally decided to do something about it and build a new version of this web part. So with this in mind, let's lay out our goals with this new web part. We will call it the Advanced Page Properties web part. 

Feature Goals

Attempt to replicate the functionality of Page Properties with the following improvements:

  • Support for theme variants
  • Updated to standard capsule look for list options
  • Support for image fields
  • Support for hyperlink fields
  • Support for currency
  • Improved support for dates

In other words, we're shooting for this:

Screen Shot 2021-04-06 at 2.40.56 PM.png

 

Property Pane

For a part like this, it's all about getting the property page figured out first. We want this to feel familiar too and not stray too much from the original design, unless it helps.

Let's start by recognizing our chief property that the web part needs: selectedProperties. This array will hold the internal names of the fields that a user has selected for display in our web part. We intend on passing this property down to our React component. Here's a look at our property object:

export interface IAdvancedPagePropertiesWebPartProps {
title: string;
selectedProperties: string[];
}

In our AdvancedPagePropertiesWebPart, we want to hold all possible properties for drop downs in a single array.

private availableProperties: IPropertyPaneDropdownOption[] = [];

Next, we need the following method to obtain the right types of properties for display:

  private async getPageProperties(): Promise<void> {
    Log.Write("Getting Site Page fields...");
    const list = sp.web.lists.getByTitle("Site Pages");
    const fi = await list.fields();

    this.availableProperties = [];
    Log.Write(`${fi.length.toString()} fields retrieved!`);
    fi.forEach((f) => {
      if (!f.FromBaseType && !f.Hidden && !f.Sealed && f.SchemaXml.indexOf("ShowInListSettings=\"FALSE\"") === -1
          && f.TypeAsString !== "Boolean" && f.TypeAsString !== "Note" && f.TypeAsString !== "User") {
        this.availableProperties.push({ key: f.InternalName, text: f.Title });
        Log.Write(f.TypeAsString);
      }
    });
  }

We are using the PnP JS library for gathering the fields in the Site Pages library. Figuring out the right types of filters to gather was a bit of trial-and-error. We are excluding anything that's inherited from a base type or is hidden in any way. We are also excluding 3 standard types so far: boolean, note and user. Note doesn't make sense to display. Boolean can definitely work, but needs a good display convention. User was the only tricky object, which is the reason it isn't done yet.

We call the above method prior to loading up the property pane.

  protected async onPropertyPaneConfigurationStart(): Promise<void> {
    Log.Write(`onPropertyPaneConfigurationStart`);
    await this.getPageProperties();
    this.context.propertyPane.refresh();
  }

We need handlers for adding and deleting a property and selecting a property from a dropdown. These methods make necessary changes to the selectedProperties array.

  protected onAddButtonClick (value: any) {
    this.properties.selectedProperties.push(this.availableProperties[0].key.toString());
  }

  protected onDeleteButtonClick (value: any) {
    Log.Write(value.toString());
    var removed = this.properties.selectedProperties.splice(value, 1);
    Log.Write(`${removed[0]} removed.`);
  }

  protected onPropertyPaneFieldChanged(propertyPath: string, oldValue: any, newValue: any): void {
    if (propertyPath.indexOf("selectedProperty") >= 0) {
      Log.Write('Selected Property identified');
      let index: number = _.toInteger(propertyPath.replace("selectedProperty", ""));
      this.properties.selectedProperties[index] = newValue;
    }
  }

Finally, with all of our pieces in place, we can render our property pane with all it's needed functionality.

  protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration {
    Log.Write(`getPropertyPaneConfiguration`);

    // Initialize with the Title entry
    var propDrops: IPropertyPaneField<any>[] = [];
    propDrops.push(PropertyPaneTextField('title', {
      label: strings.TitleFieldLabel
    }));
    propDrops.push(PropertyPaneHorizontalRule());
    // Determine how many page property dropdowns we currently have
    this.properties.selectedProperties.forEach((prop, index) => {
      propDrops.push(PropertyPaneDropdown(`selectedProperty${index.toString()}`,
        {
          label: strings.SelectedPropertiesFieldLabel,
          options: this.availableProperties,
          selectedKey: prop,
        }));
      // Every drop down gets its own delete button
      propDrops.push(PropertyPaneButton(`deleteButton${index.toString()}`,
      {
        text: strings.PropPaneDeleteButtonText,
        buttonType: PropertyPaneButtonType.Command,
        icon: "RecycleBin",
        onClick: this.onDeleteButtonClick.bind(this, index)
      }));
      propDrops.push(PropertyPaneHorizontalRule());
    });
    // Always have the Add button
    propDrops.push(PropertyPaneButton('addButton',
    {
      text: strings.PropPaneAddButtonText,
      buttonType: PropertyPaneButtonType.Command,
      icon: "CirclePlus",
      onClick: this.onAddButtonClick.bind(this)
    }));

    return {
      pages: [
        {
          header: {
            description: strings.PropertyPaneDescription
          },
          groups: [
            {
              groupName: strings.SelectionGroupName,
              groupFields: propDrops
            }
          ]
        }
      ]
    };
  }

Our Component and Displaying our fields/values

Our React component needs to properly react to the list of selected properties changing. It also needs to react to our theme changing. I leveraged this awesome post from Hugo Bernier for the theming, so I will not cover that in-depth, although you will see how it's being leveraged in the code snippets below. Here are the properties we plan to start with and respond to: 

import { IReadonlyTheme } from '@microsoft/sp-component-base';
import { WebPartContext } from "@microsoft/sp-webpart-base";

export interface IAdvancedPagePropertiesProps {
  context: WebPartContext;
  title: string;
  selectedProperties: string[];
  themeVariant: IReadonlyTheme | undefined;
}

We will track the state of our selected properties and their values with hooks. We want to trigger off of changes to our properties, so we will setup a reference to their current state. We will also establish our themeVariant and context at the start of our component.

// Main state object for the life of this component - pagePropValues
  const [pagePropValues, setPagePropValues] = useState<PageProperty[]>([]);
  const propsRef = useRef(props);

  const { semanticColors }: IReadonlyTheme = props.themeVariant;

  propsRef.current = props;

  sp.setup({ spfxContext: props.context });

So we are tracking the state of pagePropValues, which is an array of type PageProperty. What is PageProperty?

import { IFieldInfo } from "@pnp/sp/fields";

export interface PageProperty {
  info: IFieldInfo;
  values: any[];
}

Our effect is looking to see when changes are made to the properties, then is peforming our core logic to refresh properties and values.

  /**
   * @description Effects to fire whenever the properties change
   */
  useEffect(() => {
    refreshProperties();

    return () => {
      // No cleanup at this moment
    };
  }, [propsRef.current]);

The core method is refreshProperties. It has 2 main calls it needs to make, whenever selected properties has changed: Establish any known metadata for each property that will assist in display and obtain all actual values for this property and the specific page id that we are viewing.

  /**
   * refreshProperties
   * @description Gets the actual values for any selected properties, along with critical field metadata and ultimately re-sets the pagePropValues state
   */
  async function refreshProperties () {
    var newSetOfValues: PageProperty[] = [];

    if (props.selectedProperties !== undefined && props.selectedProperties !== null) {
      Log.Write(`${props.selectedProperties.length.toString()} properties used.`);

      // Get the value(s) for the field from the list item itself
      var allValues: any = {};
      if (props.context.pageContext.listItem !== undefined && props.context.pageContext.listItem !== null) {
        allValues = await sp.web.lists.getByTitle("Site Pages").items.getById(props.context.pageContext.listItem.id).select(...props.selectedProperties).get();
        console.log(allValues);
      }

      for (let i = 0; i < props.selectedProperties.length; i++) {
        const prop = props.selectedProperties[i];

        Log.Write(`Selected Property: ${prop}`);

        // Get field information, in case anything is needed in conjunction with value types
        const field = await sp.web.lists.getByTitle("Site Pages").fields.getByInternalNameOrTitle(prop)();

        // Establish the values array
        var values: any[] = [];
        if (allValues.hasOwnProperty(prop)) {
          switch (field.TypeAsString) {
            case "TaxonomyFieldTypeMulti":
            case "MultiChoice":
              values = _.clone(allValues[prop]);
              break;
            case "Thumbnail":
              values.push(JSON.parse(allValues[prop]));
              break;

            default:
              // Default behavior is to treat it like a string
              values.push(allValues[prop]);
              break;
          }
        }

        // Push the final setup of a PageProperty object
        newSetOfValues.push({ info: field, values: [...values] });
      }

      setPagePropValues({...newSetOfValues});
    }
  }

As we loop through all of the properties that have been selected, we make calls with PnP JS to get all of the metadata per field and all of the values per field. The call to get all of the values can return with any number of data types, so we need to be prepared for that. This is why it is of type any[] to start. But this is also why we have a switch statement for certain outlier situations, where the line to set the array of any need to be done a little differently than the default. Our 3 known cases of needing to do something different are TaxonomyFieldTypeMulti, MultiChoice and Thumbnail.

React and Display

Our function component returns the following:

  return (
    <div className={`${styles.advancedPageProperties} ${styles.container}`} style={{backgroundColor: semanticColors.bodyBackground, color: semanticColors.bodyText}}>
      {RenderTitle()}
      {RenderPageProperties()}
    </div>
  );

RenderTitle is pretty straightforward.

  /**
   * RenderTitle
   * @description Focuses on the 1 row layer, being the Title that has been chosen for the page
   * @returns
   */
  const RenderTitle = () => {
    if (props.title !== '') {
      return <div className={styles.title}>{props.title}</div>;
    } else {
      return null;
    }
  };

RenderPageProperties is the first of a 2-dimensional loop, where we want to display a section for each page property that was select, just like the original.

  /**
   * RenderPageProperties
   * @description Focuses on the 2nd row layer, which is the property names that have been chosen to be displayed (uses Title as the display name)
   * @returns
   */
  const RenderPageProperties = () => {
    if (pagePropValues !== undefined && pagePropValues !== null) {
      var retVal = _.map(pagePropValues, (prop) => {
        return (
            <>
              <div className={styles.propNameRow}>{prop.info.Title}<span style={{display: 'none'}}> - {prop.info.TypeAsString}</span></div>
              <div className={styles.propValsRow}>
                {RenderPagePropValue(prop)}
              </div>
            </>
          );
      });
      return retVal;
    } else {
      return <i>Nothing to display</i>;
    }
  };

This method then calls our final display method, RenderPagePropValue, which performs our 2nd layer of array display, mapping all of the values and providing the correct display, based on the field type of the selected property. This is the heart of the display, where various type conversions and logic are done real-time as we display the values, including trying to achieve a slightly more modern SharePoint look using capsules for array labels.

  /**
   * RenderPagePropValue
   * @description Focuses on the 3rd and final row layer, which is the actual values tied to any property displayed for the page
   * @param prop
   * @returns
   */
   const RenderPagePropValue = (prop: PageProperty) => {
    console.log(prop);
    var retVal = _.map(prop.values, (val) => {
      if (val !== null) {
        switch (prop.info.TypeAsString) {
          case "URL":
            return (
              <span className={styles.urlValue}><a href={val.Url} target="_blank" style={{color: semanticColors.link}}>{val.Description}</a></span>
            );
          case "Thumbnail":
            return (
              <span><img className={styles.imgValue} src={val.serverRelativeUrl} /></span>
            );
          case "Number":
            return (
              <span className={styles.plainValue}>{(prop.info["ShowAsPercentage"] === true ? Number(val).toLocaleString(undefined,{style: 'percent', minimumFractionDigits:0}) : (prop.info["CommaSeparator"] === true ? val.toLocaleString('en') : val.toString()))}</span>
            );
          case "Currency":
            return (
              <span className={styles.plainValue}>{(prop.info["CommaSeparator"] === true ? new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(val) : Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', useGrouping: false }).format(val))}</span>
            );
          case "DateTime":
            //,"",,
            switch (prop.info["DateFormat"]) {
              case "StandardUS":
                return (
                  <span className={styles.plainValue}>{new Date(val).toLocaleDateString()}</span>
                );
              case "ISO8601":
                const d = new Date(val);
                return (
                  <span className={styles.plainValue}>{`${d.getFullYear().toString()}-${d.getMonth()}-${d.getDate()}`}</span>
                );
              case "DayOfWeek":
                return (
                  <span className={styles.plainValue}>{new Date(val).toLocaleDateString("en-US", { weekday: 'long', month: 'long', day: 'numeric', year: 'numeric' })}</span>
                );
              case "MonthSpelled":
                return (
                  <span className={styles.plainValue}>{new Date(val).toLocaleDateString("en-US", { month: 'long', day: 'numeric', year: 'numeric' })}</span>
                );
              default:
                return (
                  <span className={styles.plainValue}>{new Date(val).toLocaleDateString()}</span>
                );
            }
          case "TaxonomyFieldTypeMulti":
          case "TaxonomyFieldType":
            return (
              <span className={styles.standardCapsule} style={{backgroundColor: semanticColors.accentButtonBackground, color: semanticColors.accentButtonText}}>{val.Label}</span>
            );
          default:
            return (
              <span className={styles.standardCapsule} style={{backgroundColor: semanticColors.accentButtonBackground, color: semanticColors.accentButtonText}}>{val}</span>
            );
        }
      } else {
        return (<span className={styles.plainValue}>N/A</span>);
      }
    });
    return retVal;
  };

So that's all of the necessary code. Here's what the finished product looks like, compared to the original page properties web part.

diff-screencap

 

This web part is now officially apart of the PnP Web Parts repository and can be found here. I would love to hear about improvements you'd like to see and obviously you are more than welcome to contribute. I already have a bit of a list of things I'd love to see it do. 

Other ideas for improvements

  • Capsules to be linkable to either a search result page or a filtered view of site pages (we always get client requests for this)
  • Support for People fields (this is the only thing lacking from the original)
  • Support for Boolean fields (just need the right idea for proper display, really)
  • Styling per property (ie. colorizing per property or something to that effect)

Conclusion

Hopefully, I've gotten you excited about Page Properties again and you've learned a little along the way around how the current Page Properties part might be doing what it does under the hood. Please consider contributing and feel free to reach out to me anytime. Thanks for your time!

 
1 Comment
Occasional Contributor

Do you think it would be possible to integrate SharePoint Multiline Text Fields to your extented Page Property WebPart?

The Standard Page Property Webparts does not allow to display Multiline Text Columns...

%3CLINGO-SUB%20id%3D%22lingo-sub-2256651%22%20slang%3D%22en-US%22%3EImproving%20the%20Page%20Properties%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2256651%22%20slang%3D%22en-US%22%3E%3CP%20data-unlink%3D%22true%22%3EEver%20get%20annoyed%20with%20the%20page%20properties%20web%20part%20put%20out%20by%20Microsoft%3F%20If%20you've%20got%20some%20OCD%20issues%20(like%20me)%20then%20it%20may%20not%20take%20very%20long.%20At%20%3CA%20href%3D%22https%3A%2F%2Fthreewill.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EThreeWill%3C%2FA%3E%2C%20we%20help%20clients%20with%20their%20digital%20workplaces%20and%20improving%20the%20way%20their%20users%20can%20obtain%20information%20and%20makes%20sense%20of%20it%20all.%20Oftentimes%2C%20the%20Page%20Properties%20web%20part%20can%20be%20useful%20here%2C%20as%20we%20very%20often%20add%20valuable%20metadata%20to%20pages%20in%20a%20digital%20workplace%2C%20which%20we%20often%20tie%20to%20page%20templates%20as%20well.%20News%20might%20roll%20up%20based%20on%20these%20page%20properties%2C%20which%20can%20assist%20in%20finding%20information%20in%20many%20ways.%20But%20its%20often%20handy%20to%20display%20this%20metadata%20in%20a%20clean%20way%20on%20a%20page%20as%20well.%20The%20standard%20Page%20Properties%20web%20part%20seeks%20to%20do%20just%20that.%20And%2C%20for%20the%20most%20part%2C%20it%20does%20a%20fine%20job%20with%20it.%20But%20it%20has%20a%20few%20deficiencies.%20The%20most%20annoying%20thing%20to%20me%2C%20when%20setting%20up%20digital%20workplaces%20was%20that%20it%20only%20supports%20a%20white%20background.%20But%20there%20are%20other%20small%20things%2C%20like%20the%20limitations%20with%20pretty%20standard%20field%20types.%20I%20like%20the%20idea%20of%20taking%20advantage%20of%20metadata%20columns%20for%20pages%2C%20but%20being%20able%20to%20use%20it%20visually%20is%20equally%20important.%20I%20finally%20decided%20to%20do%20something%20about%20it%20and%20build%20a%20new%20version%20of%20this%20web%20part.%20So%20with%20this%20in%20mind%2C%20let's%20lay%20out%20our%20goals%20with%20this%20new%20web%20part.%20We%20will%20call%20it%20the%20Advanced%20Page%20Properties%20web%20part.%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--495503434%22%20id%3D%22toc-hId--495503434%22%20id%3D%22toc-hId--495503434%22%3EFeature%20Goals%3C%2FH2%3E%0A%3CP%3EAttempt%20to%20replicate%20the%20functionality%20of%20Page%20Properties%20with%20the%20following%20improvements%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESupport%20for%20theme%20variants%3C%2FLI%3E%0A%3CLI%3EUpdated%20to%20standard%20capsule%20look%20for%20list%20options%3C%2FLI%3E%0A%3CLI%3ESupport%20for%20image%20fields%3C%2FLI%3E%0A%3CLI%3ESupport%20for%20hyperlink%20fields%3C%2FLI%3E%0A%3CLI%3ESupport%20for%20currency%3C%2FLI%3E%0A%3CLI%3EImproved%20support%20for%20dates%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EIn%20other%20words%2C%20we're%20shooting%20for%20this%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screen%20Shot%202021-04-06%20at%202.40.56%20PM.png%22%20style%3D%22width%3A%20561px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F270627i8EC564DBD0E356FE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screen%20Shot%202021-04-06%20at%202.40.56%20PM.png%22%20alt%3D%22Screen%20Shot%202021-04-06%20at%202.40.56%20PM.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1992009399%22%20id%3D%22toc-hId-1992009399%22%20id%3D%22toc-hId-1992009399%22%3EProperty%20Pane%3C%2FH2%3E%0A%3CP%3EFor%20a%20part%20like%20this%2C%20it's%20all%20about%20getting%20the%20property%20page%20figured%20out%20first.%20We%20want%20this%20to%20feel%20familiar%20too%20and%20not%20stray%20too%20much%20from%20the%20original%20design%2C%20unless%20it%20helps.%3C%2FP%3E%0A%3CP%3ELet's%20start%20by%20recognizing%20our%20chief%20property%20that%20the%20web%20part%20needs%3A%20selectedProperties.%20This%20array%20will%20hold%20the%20internal%20names%20of%20the%20fields%20that%20a%20user%20has%20selected%20for%20display%20in%20our%20web%20part.%20We%20intend%20on%20passing%20this%20property%20down%20to%20our%20React%20component.%20Here's%20a%20look%20at%20our%20property%20object%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%3CSPAN%20class%3D%22hljs-selector-tag%22%3Eexport%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3Einterface%20%3CSPAN%20class%3D%22hljs-selector-tag%22%3EIAdvancedPagePropertiesWebPartProps%20%7B%0A%3CSPAN%20class%3D%22hljs-attribute%22%3Etitle%3A%20string%3B%0A%3CSPAN%20class%3D%22hljs-attribute%22%3EselectedProperties%3A%20string%5B%5D%3B%0A%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EIn%20our%20AdvancedPagePropertiesWebPart%2C%20we%20want%20to%20hold%20all%20possible%20properties%20for%20drop%20downs%20in%20a%20single%20array.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3Eprivate%20availableProperties%3A%20IPropertyPaneDropdownOption%3CSPAN%20class%3D%22hljs-string%22%3E%5B%5D%20%3D%20%3CSPAN%20class%3D%22hljs-string%22%3E%5B%5D%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ENext%2C%20we%20need%20the%20following%20method%20to%20obtain%20the%20right%20types%20of%20properties%20for%20display%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%20%20private%20%3CSPAN%20class%3D%22hljs-keyword%22%3Easync%20getPageProperties()%3A%20%3CSPAN%20class%3D%22hljs-built_in%22%3EPromise%26lt%3B%3CSPAN%20class%3D%22hljs-keyword%22%3Evoid%26gt%3B%20%7B%0A%20%20%20%20Log.Write(%3CSPAN%20class%3D%22hljs-string%22%3E%22Getting%20Site%20Page%20fields...%22)%3B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Econst%20list%20%3D%20sp.web.lists.getByTitle(%3CSPAN%20class%3D%22hljs-string%22%3E%22Site%20Pages%22)%3B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Econst%20fi%20%3D%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eawait%20list.fields()%3B%0A%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis.availableProperties%20%3D%20%5B%5D%3B%0A%20%20%20%20Log.Write(%3CSPAN%20class%3D%22hljs-string%22%3E%60%3CSPAN%20class%3D%22hljs-subst%22%3E%24%7Bfi.length.toString()%7D%20fields%20retrieved!%60)%3B%0A%20%20%20%20fi.forEach(%3CSPAN%20class%3D%22hljs-function%22%3E(%3CSPAN%20class%3D%22hljs-params%22%3Ef)%20%3D%26gt%3B%20%7B%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eif%20(!f.FromBaseType%20%26amp%3B%26amp%3B%20!f.Hidden%20%26amp%3B%26amp%3B%20!f.Sealed%20%26amp%3B%26amp%3B%20f.SchemaXml.indexOf(%3CSPAN%20class%3D%22hljs-string%22%3E%22ShowInListSettings%3D%5C%22FALSE%5C%22%22)%20%3D%3D%3D%20%3CSPAN%20class%3D%22hljs-number%22%3E-1%0A%20%20%20%20%20%20%20%20%20%20%26amp%3B%26amp%3B%20f.TypeAsString%20!%3D%3D%20%3CSPAN%20class%3D%22hljs-string%22%3E%22Boolean%22%20%26amp%3B%26amp%3B%20f.TypeAsString%20!%3D%3D%20%3CSPAN%20class%3D%22hljs-string%22%3E%22Note%22%20%26amp%3B%26amp%3B%20f.TypeAsString%20!%3D%3D%20%3CSPAN%20class%3D%22hljs-string%22%3E%22User%22)%20%7B%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis.availableProperties.push(%7B%20%3CSPAN%20class%3D%22hljs-attr%22%3Ekey%3A%20f.InternalName%2C%20%3CSPAN%20class%3D%22hljs-attr%22%3Etext%3A%20f.Title%20%7D)%3B%0A%20%20%20%20%20%20%20%20Log.Write(f.TypeAsString)%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D)%3B%0A%20%20%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EWe%20are%20using%20the%20PnP%20JS%20library%20for%20gathering%20the%20fields%20in%20the%20Site%20Pages%20library.%20Figuring%20out%20the%20right%20types%20of%20filters%20to%20gather%20was%20a%20bit%20of%20trial-and-error.%20We%20are%20excluding%20anything%20that's%20inherited%20from%20a%20base%20type%20or%20is%20hidden%20in%20any%20way.%20We%20are%20also%20excluding%203%20standard%20types%20so%20far%3A%20boolean%2C%20note%20and%20user.%20Note%20doesn't%20make%20sense%20to%20display.%20Boolean%20can%20definitely%20work%2C%20but%20needs%20a%20good%20display%20convention.%20User%20was%20the%20only%20tricky%20object%2C%20which%20is%20the%20reason%20it%20isn't%20done%20yet.%3C%2FP%3E%0A%3CP%3EWe%20call%20the%20above%20method%20prior%20to%20loading%20up%20the%20property%20pane.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%20%20%3CSPAN%20class%3D%22hljs-function%22%3E%3CSPAN%20class%3D%22hljs-keyword%22%3Eprotected%20%3CSPAN%20class%3D%22hljs-keyword%22%3Easync%20%3CSPAN%20class%3D%22hljs-title%22%3EonPropertyPaneConfigurationStart()%3A%20Promise%26lt%3B%3CSPAN%20class%3D%22hljs-keyword%22%3Evoid%26gt%3B%20%7B%0A%20%20%20%20Log.Write(%60onPropertyPaneConfigurationStart%60)%3B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eawait%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis.getPageProperties()%3B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis.context.propertyPane.refresh()%3B%0A%20%20%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EWe%20need%20handlers%20for%20adding%20and%20deleting%20a%20property%20and%20selecting%20a%20property%20from%20a%20dropdown.%20These%20methods%20make%20necessary%20changes%20to%20the%20selectedProperties%20array.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%20%20%3CSPAN%20class%3D%22hljs-function%22%3E%3CSPAN%20class%3D%22hljs-keyword%22%3Eprotected%20%3CSPAN%20class%3D%22hljs-title%22%3EonAddButtonClick%20(%3CSPAN%20class%3D%22hljs-params%22%3E%3CSPAN%20class%3D%22hljs-keyword%22%3Evalue%3A%20any)%20%7B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis.properties.selectedProperties.push(%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis.availableProperties%5B%3CSPAN%20class%3D%22hljs-number%22%3E0%5D.key.toString())%3B%0A%20%20%7D%0A%0A%20%20%3CSPAN%20class%3D%22hljs-function%22%3E%3CSPAN%20class%3D%22hljs-keyword%22%3Eprotected%20%3CSPAN%20class%3D%22hljs-title%22%3EonDeleteButtonClick%20(%3CSPAN%20class%3D%22hljs-params%22%3E%3CSPAN%20class%3D%22hljs-keyword%22%3Evalue%3A%20any)%20%7B%0A%20%20%20%20Log.Write(%3CSPAN%20class%3D%22hljs-keyword%22%3Evalue.toString())%3B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Evar%20removed%20%3D%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis.properties.selectedProperties.splice(%3CSPAN%20class%3D%22hljs-keyword%22%3Evalue%2C%20%3CSPAN%20class%3D%22hljs-number%22%3E1)%3B%0A%20%20%20%20Log.Write(%60%24%7Bremoved%5B%3CSPAN%20class%3D%22hljs-number%22%3E0%5D%7D%20removed.%60)%3B%0A%20%20%7D%0A%0A%20%20%3CSPAN%20class%3D%22hljs-function%22%3E%3CSPAN%20class%3D%22hljs-keyword%22%3Eprotected%20%3CSPAN%20class%3D%22hljs-title%22%3EonPropertyPaneFieldChanged(%3CSPAN%20class%3D%22hljs-params%22%3EpropertyPath%3A%20%3CSPAN%20class%3D%22hljs-keyword%22%3Estring%2C%20oldValue%3A%20any%2C%20newValue%3A%20any)%3A%20%3CSPAN%20class%3D%22hljs-keyword%22%3Evoid%20%7B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eif%20(propertyPath.indexOf(%3CSPAN%20class%3D%22hljs-string%22%3E%22selectedProperty%22)%20%26gt%3B%3D%20%3CSPAN%20class%3D%22hljs-number%22%3E0)%20%7B%0A%20%20%20%20%20%20Log.Write(%3CSPAN%20class%3D%22hljs-string%22%3E'Selected%20Property%20identified')%3B%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Elet%20index%3A%20number%20%3D%20_.toInteger(propertyPath.replace(%3CSPAN%20class%3D%22hljs-string%22%3E%22selectedProperty%22%2C%20%3CSPAN%20class%3D%22hljs-string%22%3E%22%22))%3B%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis.properties.selectedProperties%5Bindex%5D%20%3D%20newValue%3B%0A%20%20%20%20%7D%0A%20%20%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EFinally%2C%20with%20all%20of%20our%20pieces%20in%20place%2C%20we%20can%20render%20our%20property%20pane%20with%20all%20it's%20needed%20functionality.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eprotected%20getPropertyPaneConfiguration()%3A%20IPropertyPaneConfiguration%20%7B%0A%20%20%20%20Log.%3CSPAN%20class%3D%22hljs-keyword%22%3EWrite(%60getPropertyPaneConfiguration%60)%3B%0A%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F%2F%20Initialize%20with%20the%20Title%20entry%0A%20%20%20%20var%20propDrops%3A%20IPropertyPaneField%26lt%3B%3CSPAN%20class%3D%22hljs-keyword%22%3Eany%26gt%3B%5B%5D%20%3D%20%5B%5D%3B%0A%20%20%20%20propDrops.%3CSPAN%20class%3D%22hljs-keyword%22%3Epush(PropertyPaneTextField(%3CSPAN%20class%3D%22hljs-string%22%3E'title'%2C%20%7B%0A%20%20%20%20%20%20label%3A%20strings.TitleFieldLabel%0A%20%20%20%20%7D))%3B%0A%20%20%20%20propDrops.%3CSPAN%20class%3D%22hljs-keyword%22%3Epush(PropertyPaneHorizontalRule())%3B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F%2F%20Determine%20how%20many%20page%20property%20dropdowns%20we%20currently%20have%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis.properties.selectedProperties.forEach((prop%2C%20index)%20%3D%26gt%3B%20%7B%0A%20%20%20%20%20%20propDrops.%3CSPAN%20class%3D%22hljs-keyword%22%3Epush(PropertyPaneDropdown(%60selectedProperty%24%7Bindex.toString()%7D%60%2C%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20label%3A%20strings.SelectedPropertiesFieldLabel%2C%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eoptions%3A%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis.availableProperties%2C%0A%20%20%20%20%20%20%20%20%20%20selectedKey%3A%20prop%2C%0A%20%20%20%20%20%20%20%20%7D))%3B%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F%2F%20Every%20drop%20down%20gets%20its%20own%20delete%20button%0A%20%20%20%20%20%20propDrops.%3CSPAN%20class%3D%22hljs-keyword%22%3Epush(PropertyPaneButton(%60deleteButton%24%7Bindex.toString()%7D%60%2C%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20text%3A%20strings.PropPaneDeleteButtonText%2C%0A%20%20%20%20%20%20%20%20buttonType%3A%20PropertyPaneButtonType.Command%2C%0A%20%20%20%20%20%20%20%20icon%3A%20%3CSPAN%20class%3D%22hljs-string%22%3E%22RecycleBin%22%2C%0A%20%20%20%20%20%20%20%20onClick%3A%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis.onDeleteButtonClick.bind(%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis%2C%20index)%0A%20%20%20%20%20%20%7D))%3B%0A%20%20%20%20%20%20propDrops.%3CSPAN%20class%3D%22hljs-keyword%22%3Epush(PropertyPaneHorizontalRule())%3B%0A%20%20%20%20%7D)%3B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F%2F%20Always%20have%20the%20Add%20button%0A%20%20%20%20propDrops.%3CSPAN%20class%3D%22hljs-keyword%22%3Epush(PropertyPaneButton(%3CSPAN%20class%3D%22hljs-string%22%3E'addButton'%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20text%3A%20strings.PropPaneAddButtonText%2C%0A%20%20%20%20%20%20buttonType%3A%20PropertyPaneButtonType.Command%2C%0A%20%20%20%20%20%20icon%3A%20%3CSPAN%20class%3D%22hljs-string%22%3E%22CirclePlus%22%2C%0A%20%20%20%20%20%20onClick%3A%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis.onAddButtonClick.bind(%3CSPAN%20class%3D%22hljs-keyword%22%3Ethis)%0A%20%20%20%20%7D))%3B%0A%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20%7B%0A%20%20%20%20%20%20pages%3A%20%5B%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20header%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Edescription%3A%20strings.PropertyPaneDescription%0A%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20groups%3A%20%5B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20groupName%3A%20strings.SelectionGroupName%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20groupFields%3A%20propDrops%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%5D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%3B%0A%20%20%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CH2%20id%3D%22toc-hId-184554936%22%20id%3D%22toc-hId-184554936%22%20id%3D%22toc-hId-184554936%22%3EOur%20Component%20and%20Displaying%20our%20fields%2Fvalues%3C%2FH2%3E%0A%3CP%20data-unlink%3D%22true%22%3EOur%20React%20component%20needs%20to%20properly%20react%20to%20the%20list%20of%20selected%20properties%20changing.%20It%20also%20needs%20to%20react%20to%20our%20theme%20changing.%20I%20leveraged%20this%20%3CA%20href%3D%22https%3A%2F%2Ftahoeninjas.blog%2F2020%2F07%2F28%2Fadding-support-for-theme-variants-in-spfx-web-parts%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Eawesome%20post%20from%20Hugo%20Bernier%3C%2FA%3E%20for%20the%20theming%2C%20so%20I%20will%20not%20cover%20that%20in-depth%2C%20although%20you%20will%20see%20how%20it's%20being%20leveraged%20in%20the%20code%20snippets%20below.%20Here%20are%20the%20properties%20we%20plan%20to%20start%20with%20and%20respond%20to%3A%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%3CSPAN%20class%3D%22hljs-keyword%22%3Eimport%20%7B%20IReadonlyTheme%20%7D%20from%20%3CSPAN%20class%3D%22hljs-string%22%3E'%40microsoft%2Fsp-component-base'%3B%0A%3CSPAN%20class%3D%22hljs-keyword%22%3Eimport%20%7B%20WebPartContext%20%7D%20from%20%3CSPAN%20class%3D%22hljs-string%22%3E%22%40microsoft%2Fsp-webpart-base%22%3B%0A%0A%3CSPAN%20class%3D%22hljs-keyword%22%3Eexport%20%3CSPAN%20class%3D%22hljs-keyword%22%3Einterface%20IAdvancedPagePropertiesProps%20%7B%0A%20%20context%3A%20WebPartContext%3B%0A%20%20title%3A%20%3CSPAN%20class%3D%22hljs-built_in%22%3Estring%3B%0A%20%20selectedProperties%3A%20%3CSPAN%20class%3D%22hljs-built_in%22%3Estring%5B%5D%3B%0A%20%20themeVariant%3A%20IReadonlyTheme%20%7C%20%3CSPAN%20class%3D%22hljs-literal%22%3Eundefined%3B%0A%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EWe%20will%20track%20the%20state%20of%20our%20selected%20properties%20and%20their%20values%20with%20hooks.%20We%20want%20to%20trigger%20off%20of%20changes%20to%20our%20properties%2C%20so%20we%20will%20setup%20a%20reference%20to%20their%20current%20state.%20We%20will%20also%20establish%20our%20themeVariant%20and%20context%20at%20the%20start%20of%20our%20component.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%2F%2F%20Main%20%3CSPAN%20class%3D%22hljs-keyword%22%3Estate%20object%20%3CSPAN%20class%3D%22hljs-keyword%22%3Efor%20the%20life%20of%20this%20component%20-%20pagePropValues%0A%20%20const%20%5BpagePropValues%2C%20%3CSPAN%20class%3D%22hljs-built_in%22%3EsetPagePropValues%5D%20%3D%20useState%3CSPAN%20class%3D%22hljs-variable%22%3E%3CPAGEPROPERTY%3E(%5B%5D)%3B%0A%20%20const%20propsRef%20%3D%20useRef(props)%3B%0A%0A%20%20const%20%7B%20semanticColors%20%7D%3A%20IReadonlyTheme%20%3D%20props.themeVariant%3B%0A%0A%20%20propsRef.current%20%3D%20props%3B%0A%0A%20%20sp.setup(%7B%20spfxContext%3A%20props.context%20%7D)%3B%3C%2FPAGEPROPERTY%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ESo%20we%20are%20tracking%20the%20state%20of%20pagePropValues%2C%20which%20is%20an%20array%20of%20type%20PageProperty.%20What%20is%20PageProperty%3F%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%3CSPAN%20class%3D%22hljs-keyword%22%3Eimport%20%7B%20IFieldInfo%20%7D%20%3CSPAN%20class%3D%22hljs-keyword%22%3Efrom%20%3CSPAN%20class%3D%22hljs-string%22%3E%22%40pnp%2Fsp%2Ffields%22%3B%0A%0Aexport%20%3CSPAN%20class%3D%22hljs-class%22%3E%3CSPAN%20class%3D%22hljs-keyword%22%3Einterface%20%3CSPAN%20class%3D%22hljs-title%22%3EPageProperty%20%7B%0A%20%20info%3A%20IFieldInfo%3B%0A%20%20values%3A%20any%5B%5D%3B%0A%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EOur%20effect%20is%20looking%20to%20see%20when%20changes%20are%20made%20to%20the%20properties%2C%20then%20is%20peforming%20our%20core%20logic%20to%20refresh%20properties%20and%20values.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F**%0A%20%20%20*%20%40description%20Effects%20to%20fire%20whenever%20the%20properties%20change%0A%20%20%20*%2F%0A%20%20useEffect(%3CSPAN%20class%3D%22hljs-function%22%3E%3CSPAN%20class%3D%22hljs-params%22%3E()%20%3D%26gt%3B%20%7B%0A%20%20%20%20refreshProperties()%3B%0A%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20%3CSPAN%20class%3D%22hljs-function%22%3E%3CSPAN%20class%3D%22hljs-params%22%3E()%20%3D%26gt%3B%20%7B%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F%2F%20No%20cleanup%20at%20this%20moment%0A%20%20%20%20%7D%3B%0A%20%20%7D%2C%20%5BpropsRef.current%5D)%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThe%20core%20method%20is%20refreshProperties.%20It%20has%202%20main%20calls%20it%20needs%20to%20make%2C%20whenever%20selected%20properties%20has%20changed%3A%20Establish%20any%20known%20metadata%20for%20each%20property%20that%20will%20assist%20in%20display%20and%20obtain%20all%20actual%20values%20for%20this%20property%20and%20the%20specific%20page%20id%20that%20we%20are%20viewing.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F**%0A%20%20%20*%20refreshProperties%0A%20%20%20*%20%40description%20Gets%20the%20actual%20values%20for%20any%20selected%20properties%2C%20along%20with%20critical%20field%20metadata%20and%20ultimately%20re-sets%20the%20pagePropValues%20state%0A%20%20%20*%2F%0A%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Easync%20%3CSPAN%20class%3D%22hljs-function%22%3E%3CSPAN%20class%3D%22hljs-keyword%22%3Efunction%20%3CSPAN%20class%3D%22hljs-title%22%3ErefreshProperties%20()%20%7B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Evar%20newSetOfValues%3A%20PageProperty%5B%5D%20%3D%20%5B%5D%3B%0A%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eif%20(props.selectedProperties%20!%3D%3D%20%3CSPAN%20class%3D%22hljs-literal%22%3Eundefined%20%26amp%3B%26amp%3B%20props.selectedProperties%20!%3D%3D%20%3CSPAN%20class%3D%22hljs-literal%22%3Enull)%20%7B%0A%20%20%20%20%20%20Log.Write(%3CSPAN%20class%3D%22hljs-string%22%3E%60%3CSPAN%20class%3D%22hljs-subst%22%3E%24%7Bprops.selectedProperties.length.toString()%7D%20properties%20used.%60)%3B%0A%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F%2F%20Get%20the%20value(s)%20for%20the%20field%20from%20the%20list%20item%20itself%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Evar%20allValues%3A%20any%20%3D%20%7B%7D%3B%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eif%20(props.context.pageContext.listItem%20!%3D%3D%20%3CSPAN%20class%3D%22hljs-literal%22%3Eundefined%20%26amp%3B%26amp%3B%20props.context.pageContext.listItem%20!%3D%3D%20%3CSPAN%20class%3D%22hljs-literal%22%3Enull)%20%7B%0A%20%20%20%20%20%20%20%20allValues%20%3D%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eawait%20sp.web.lists.getByTitle(%3CSPAN%20class%3D%22hljs-string%22%3E%22Site%20Pages%22).items.getById(props.context.pageContext.listItem.id).select(...props.selectedProperties).get()%3B%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-built_in%22%3Econsole.log(allValues)%3B%0A%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Efor%20(%3CSPAN%20class%3D%22hljs-keyword%22%3Elet%20i%20%3D%20%3CSPAN%20class%3D%22hljs-number%22%3E0%3B%20i%20%26lt%3B%20props.selectedProperties.length%3B%20i%2B%2B)%20%7B%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Econst%20prop%20%3D%20props.selectedProperties%5Bi%5D%3B%0A%0A%20%20%20%20%20%20%20%20Log.Write(%3CSPAN%20class%3D%22hljs-string%22%3E%60Selected%20Property%3A%20%3CSPAN%20class%3D%22hljs-subst%22%3E%24%7Bprop%7D%60)%3B%0A%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F%2F%20Get%20field%20information%2C%20in%20case%20anything%20is%20needed%20in%20conjunction%20with%20value%20types%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Econst%20field%20%3D%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eawait%20sp.web.lists.getByTitle(%3CSPAN%20class%3D%22hljs-string%22%3E%22Site%20Pages%22).fields.getByInternalNameOrTitle(prop)()%3B%0A%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F%2F%20Establish%20the%20values%20array%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Evar%20values%3A%20any%5B%5D%20%3D%20%5B%5D%3B%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eif%20(allValues.hasOwnProperty(prop))%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eswitch%20(field.TypeAsString)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22TaxonomyFieldTypeMulti%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22MultiChoice%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20values%20%3D%20_.clone(allValues%5Bprop%5D)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ebreak%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22Thumbnail%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20values.push(%3CSPAN%20class%3D%22hljs-built_in%22%3EJSON.parse(allValues%5Bprop%5D))%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ebreak%3B%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Edefault%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F%2F%20Default%20behavior%20is%20to%20treat%20it%20like%20a%20string%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20values.push(allValues%5Bprop%5D)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ebreak%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F%2F%20Push%20the%20final%20setup%20of%20a%20PageProperty%20object%0A%20%20%20%20%20%20%20%20newSetOfValues.push(%7B%20%3CSPAN%20class%3D%22hljs-attr%22%3Einfo%3A%20field%2C%20%3CSPAN%20class%3D%22hljs-attr%22%3Evalues%3A%20%5B...values%5D%20%7D)%3B%0A%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20setPagePropValues(%7B...newSetOfValues%7D)%3B%0A%20%20%20%20%7D%0A%20%20%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EAs%20we%20loop%20through%20all%20of%20the%20properties%20that%20have%20been%20selected%2C%20we%20make%20calls%20with%20PnP%20JS%20to%20get%20all%20of%20the%20metadata%20per%20field%20and%20all%20of%20the%20values%20per%20field.%20The%20call%20to%20get%20all%20of%20the%20values%20can%20return%20with%20any%20number%20of%20data%20types%2C%20so%20we%20need%20to%20be%20prepared%20for%20that.%20This%20is%20why%20it%20is%20of%20type%20any%5B%5D%20to%20start.%20But%20this%20is%20also%20why%20we%20have%20a%20switch%20statement%20for%20certain%20outlier%20situations%2C%20where%20the%20line%20to%20set%20the%20array%20of%20any%20need%20to%20be%20done%20a%20little%20differently%20than%20the%20default.%20Our%203%20known%20cases%20of%20needing%20to%20do%20something%20different%20are%20TaxonomyFieldTypeMulti%2C%20MultiChoice%20and%20Thumbnail.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1622899527%22%20id%3D%22toc-hId--1622899527%22%20id%3D%22toc-hId--1622899527%22%3EReact%20and%20Display%3C%2FH2%3E%0A%3CP%3EOur%20function%20component%20returns%20the%20following%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%0A%20%20%20%20%3CDIV%20classname%3D%22%7B%60%24%7Bstyles.advancedPageProperties%7D%22%3E%0A%20%20%20%20%20%20%7BRenderTitle()%7D%0A%20%20%20%20%20%20%7BRenderPageProperties()%7D%0A%20%20%20%20%3C%2FDIV%3E%0A%20%20)%3B%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ERenderTitle%20is%20pretty%20straightforward.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F**%0A%20%20%20*%20RenderTitle%0A%20%20%20*%20%40description%20Focuses%20on%20the%201%20row%20layer%2C%20being%20the%20Title%20that%20has%20been%20chosen%20for%20the%20page%0A%20%20%20*%20%40returns%0A%20%20%20*%2F%0A%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Econst%20RenderTitle%20%3D%20%3CSPAN%20class%3D%22hljs-function%22%3E%3CSPAN%20class%3D%22hljs-params%22%3E()%20%3D%26gt%3B%20%7B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eif%20(props.title%20!%3D%3D%20%3CSPAN%20class%3D%22hljs-string%22%3E'')%20%7B%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20%3CSPAN%20class%3D%22xml%22%3E%3CSPAN%20class%3D%22hljs-tag%22%3E%26lt%3B%3CSPAN%20class%3D%22hljs-name%22%3Ediv%20%3CSPAN%20class%3D%22hljs-attr%22%3EclassName%3D%3CSPAN%20class%3D%22hljs-string%22%3E%7Bstyles.title%7D%26gt%3B%7Bprops.title%7D%3CSPAN%20class%3D%22hljs-tag%22%3Ediv%26gt%3B%3B%0A%20%20%20%20%7D%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eelse%20%7B%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20%3CSPAN%20class%3D%22hljs-literal%22%3Enull%3B%0A%20%20%20%20%7D%0A%20%20%7D%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ERenderPageProperties%20is%20the%20first%20of%20a%202-dimensional%20loop%2C%20where%20we%20want%20to%20display%20a%20section%20for%20each%20page%20property%20that%20was%20select%2C%20just%20like%20the%20original.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F**%0A%20%20%20*%20RenderPageProperties%0A%20%20%20*%20%40description%20Focuses%20on%20the%202nd%20row%20layer%2C%20which%20is%20the%20property%20names%20that%20have%20been%20chosen%20to%20be%20displayed%20(uses%20Title%20as%20the%20display%20name)%0A%20%20%20*%20%40returns%0A%20%20%20*%2F%0A%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Econst%20RenderPageProperties%20%3D%20%3CSPAN%20class%3D%22hljs-function%22%3E%3CSPAN%20class%3D%22hljs-params%22%3E()%20%3D%26gt%3B%20%7B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eif%20(pagePropValues%20!%3D%3D%20%3CSPAN%20class%3D%22hljs-literal%22%3Eundefined%20%26amp%3B%26amp%3B%20pagePropValues%20!%3D%3D%20%3CSPAN%20class%3D%22hljs-literal%22%3Enull)%20%7B%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Evar%20retVal%20%3D%20_.map(pagePropValues%2C%20(prop)%20%3D%26gt%3B%20%7B%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22xml%22%3E%3CSPAN%20class%3D%22hljs-tag%22%3E%26lt%3B%26gt%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-tag%22%3E%26lt%3B%3CSPAN%20class%3D%22hljs-name%22%3Ediv%20%3CSPAN%20class%3D%22hljs-attr%22%3EclassName%3D%3CSPAN%20class%3D%22hljs-string%22%3E%7Bstyles.propNameRow%7D%26gt%3B%7Bprop.info.Title%7D%3CSPAN%20class%3D%22hljs-tag%22%3E%26lt%3B%3CSPAN%20class%3D%22hljs-name%22%3Espan%20%3CSPAN%20class%3D%22hljs-attr%22%3Estyle%3D%3CSPAN%20class%3D%22hljs-string%22%3E%7B%7Bdisplay%3A%20'%3CSPAN%20class%3D%22hljs-attr%22%3Enone'%7D%7D%26gt%3B%20-%20%7Bprop.info.TypeAsString%7D%3CSPAN%20class%3D%22hljs-tag%22%3Espan%26gt%3B%3CSPAN%20class%3D%22hljs-tag%22%3Ediv%26gt%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-tag%22%3E%26lt%3B%3CSPAN%20class%3D%22hljs-name%22%3Ediv%20%3CSPAN%20class%3D%22hljs-attr%22%3EclassName%3D%3CSPAN%20class%3D%22hljs-string%22%3E%7Bstyles.propValsRow%7D%26gt%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7BRenderPagePropValue(prop)%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-tag%22%3Ediv%26gt%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-tag%22%3E%0A%20%20%20%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%20%20%7D)%3B%0A%20%20%20%20%20%20return%20retVal%3B%0A%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20return%20%3CSPAN%20class%3D%22hljs-tag%22%3E%26lt%3B%3CSPAN%20class%3D%22hljs-name%22%3Ei%26gt%3BNothing%20to%20display%3CSPAN%20class%3D%22hljs-tag%22%3Ei%26gt%3B%3B%0A%20%20%20%20%7D%0A%20%20%7D%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThis%20method%20then%20calls%20our%20final%20display%20method%2C%20RenderPagePropValue%2C%20which%20performs%20our%202nd%20layer%20of%20array%20display%2C%20mapping%20all%20of%20the%20values%20and%20providing%20the%20correct%20display%2C%20based%20on%20the%20field%20type%20of%20the%20selected%20property.%20This%20is%20the%20heart%20of%20the%20display%2C%20where%20various%20type%20conversions%20and%20logic%20are%20done%20real-time%20as%20we%20display%20the%20values%2C%20including%20trying%20to%20achieve%20a%20slightly%20more%20modern%20SharePoint%20look%20using%20capsules%20for%20array%20labels.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22lang-javascript%22%3E%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F**%0A%20%20%20*%20RenderPagePropValue%0A%20%20%20*%20%40description%20Focuses%20on%20the%203rd%20and%20final%20row%20layer%2C%20which%20is%20the%20actual%20values%20tied%20to%20any%20property%20displayed%20for%20the%20page%0A%20%20%20*%20%40param%20prop%0A%20%20%20*%20%40returns%0A%20%20%20*%2F%0A%20%20%20const%20%3CSPAN%20class%3D%22hljs-type%22%3ERenderPagePropValue%20%3D%20(prop%3A%20%3CSPAN%20class%3D%22hljs-type%22%3EPageProperty)%20%3D%26gt%3B%20%7B%0A%20%20%20%20console.log(prop)%3B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Evar%20retVal%20%3D%20_.map(prop.values%2C%20(%3CSPAN%20class%3D%22hljs-keyword%22%3Eval)%20%3D%26gt%3B%20%7B%0A%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eif%20(%3CSPAN%20class%3D%22hljs-keyword%22%3Eval%20!%3D%3D%20%3CSPAN%20class%3D%22hljs-literal%22%3Enull)%20%7B%0A%20%20%20%20%20%20%20%20switch%20(prop.info.%3CSPAN%20class%3D%22hljs-type%22%3ETypeAsString)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22URL%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20classname%3D%22%7Bstyles.urlValue%7D%22%3E%3CA%20href%3D%22%7B%26lt%3BSPAN%22%20class%3D%22hljs-keyword%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eval.%3CSPAN%20class%3D%22hljs-type%22%3EUrl%7D%20target%3D%3CSPAN%20class%3D%22hljs-string%22%3E%22_blank%22%20style%3D%7B%7Bcolor%3A%20semanticColors.link%7D%7D%26gt%3B%7B%3CSPAN%20class%3D%22hljs-keyword%22%3Eval.%3CSPAN%20class%3D%22hljs-type%22%3EDescription%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FA%3E%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22Thumbnail%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%3E%3CIMG%20classname%3D%22%7Bstyles.imgValue%7D%22%20src%3D%22%7B%26lt%3BSPAN%22%20class%3D%22hljs-keyword%22%20%2F%3Eval.serverRelativeUrl%7D%20%2F%26gt%3B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22Number%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20classname%3D%22%7Bstyles.plainValue%7D%22%3E%7B(prop.info%5B%3CSPAN%20class%3D%22hljs-string%22%3E%22ShowAsPercentage%22%5D%20%3D%3D%3D%20%3CSPAN%20class%3D%22hljs-literal%22%3Etrue%20%3F%20%3CSPAN%20class%3D%22hljs-type%22%3ENumber(%3CSPAN%20class%3D%22hljs-keyword%22%3Eval).toLocaleString(undefined%2C%7Bstyle%3A%20%3CSPAN%20class%3D%22hljs-symbol%22%3E'percent'%2C%20minimumFractionDigits%3A%3CSPAN%20class%3D%22hljs-number%22%3E0%7D)%20%3A%20(prop.info%5B%3CSPAN%20class%3D%22hljs-string%22%3E%22CommaSeparator%22%5D%20%3D%3D%3D%20%3CSPAN%20class%3D%22hljs-literal%22%3Etrue%20%3F%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eval.toLocaleString(%3CSPAN%20class%3D%22hljs-symbol%22%3E'en')%20%3A%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eval.toString()))%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22Currency%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20classname%3D%22%7Bstyles.plainValue%7D%22%3E%7B(prop.info%5B%3CSPAN%20class%3D%22hljs-string%22%3E%22CommaSeparator%22%5D%20%3D%3D%3D%20%3CSPAN%20class%3D%22hljs-literal%22%3Etrue%20%3F%20%3CSPAN%20class%3D%22hljs-keyword%22%3Enew%20%3CSPAN%20class%3D%22hljs-type%22%3EIntl.%3CSPAN%20class%3D%22hljs-type%22%3ENumberFormat(%3CSPAN%20class%3D%22hljs-symbol%22%3E'en-%3CSPAN%20class%3D%22hljs-type%22%3EUS'%2C%20%7B%20style%3A%20%3CSPAN%20class%3D%22hljs-symbol%22%3E'currency'%2C%20currency%3A%20%3CSPAN%20class%3D%22hljs-symbol%22%3E'USD'%20%7D).format(%3CSPAN%20class%3D%22hljs-keyword%22%3Eval)%20%3A%20%3CSPAN%20class%3D%22hljs-type%22%3EIntl.%3CSPAN%20class%3D%22hljs-type%22%3ENumberFormat(%3CSPAN%20class%3D%22hljs-symbol%22%3E'en-%3CSPAN%20class%3D%22hljs-type%22%3EUS'%2C%20%7B%20style%3A%20%3CSPAN%20class%3D%22hljs-symbol%22%3E'currency'%2C%20currency%3A%20%3CSPAN%20class%3D%22hljs-symbol%22%3E'USD'%2C%20useGrouping%3A%20%3CSPAN%20class%3D%22hljs-literal%22%3Efalse%20%7D).format(%3CSPAN%20class%3D%22hljs-keyword%22%3Eval))%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22DateTime%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-comment%22%3E%2F%2F%2C%22%22%2C%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20switch%20(prop.info%5B%3CSPAN%20class%3D%22hljs-string%22%3E%22DateFormat%22%5D)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22StandardUS%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20classname%3D%22%7Bstyles.plainValue%7D%22%3E%7B%3CSPAN%20class%3D%22hljs-keyword%22%3Enew%20%3CSPAN%20class%3D%22hljs-type%22%3EDate(%3CSPAN%20class%3D%22hljs-keyword%22%3Eval).toLocaleDateString()%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22ISO8601%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20const%20d%20%3D%20%3CSPAN%20class%3D%22hljs-keyword%22%3Enew%20%3CSPAN%20class%3D%22hljs-type%22%3EDate(%3CSPAN%20class%3D%22hljs-keyword%22%3Eval)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20classname%3D%22%7Bstyles.plainValue%7D%22%3E%7B%60%24%7Bd.getFullYear().toString()%7D-%24%7Bd.getMonth()%7D-%24%7Bd.getDate()%7D%60%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22DayOfWeek%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20classname%3D%22%7Bstyles.plainValue%7D%22%3E%7B%3CSPAN%20class%3D%22hljs-keyword%22%3Enew%20%3CSPAN%20class%3D%22hljs-type%22%3EDate(%3CSPAN%20class%3D%22hljs-keyword%22%3Eval).toLocaleDateString(%3CSPAN%20class%3D%22hljs-string%22%3E%22en-US%22%2C%20%7B%20weekday%3A%20%3CSPAN%20class%3D%22hljs-symbol%22%3E'long'%2C%20month%3A%20%3CSPAN%20class%3D%22hljs-symbol%22%3E'long'%2C%20day%3A%20%3CSPAN%20class%3D%22hljs-symbol%22%3E'numeric'%2C%20year%3A%20%3CSPAN%20class%3D%22hljs-symbol%22%3E'numeric'%20%7D)%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22MonthSpelled%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20classname%3D%22%7Bstyles.plainValue%7D%22%3E%7B%3CSPAN%20class%3D%22hljs-keyword%22%3Enew%20%3CSPAN%20class%3D%22hljs-type%22%3EDate(%3CSPAN%20class%3D%22hljs-keyword%22%3Eval).toLocaleDateString(%3CSPAN%20class%3D%22hljs-string%22%3E%22en-US%22%2C%20%7B%20month%3A%20%3CSPAN%20class%3D%22hljs-symbol%22%3E'long'%2C%20day%3A%20%3CSPAN%20class%3D%22hljs-symbol%22%3E'numeric'%2C%20year%3A%20%3CSPAN%20class%3D%22hljs-symbol%22%3E'numeric'%20%7D)%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Edefault%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20classname%3D%22%7Bstyles.plainValue%7D%22%3E%7B%3CSPAN%20class%3D%22hljs-keyword%22%3Enew%20%3CSPAN%20class%3D%22hljs-type%22%3EDate(%3CSPAN%20class%3D%22hljs-keyword%22%3Eval).toLocaleDateString()%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22TaxonomyFieldTypeMulti%22%3A%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ecase%20%3CSPAN%20class%3D%22hljs-string%22%3E%22TaxonomyFieldType%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20classname%3D%22%7Bstyles.standardCapsule%7D%22%20style%3D%22%7B%7BbackgroundColor%3A%22%20semanticcolors.accentbuttonbackground%3D%22%22%3E%7B%3CSPAN%20class%3D%22hljs-keyword%22%3Eval.%3CSPAN%20class%3D%22hljs-type%22%3ELabel%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Edefault%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20classname%3D%22%7Bstyles.standardCapsule%7D%22%20style%3D%22%7B%7BbackgroundColor%3A%22%20semanticcolors.accentbuttonbackground%3D%22%22%3E%7B%3CSPAN%20class%3D%22hljs-keyword%22%3Eval%7D%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%20%3CSPAN%20class%3D%22hljs-keyword%22%3Eelse%20%7B%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20(%3CSPAN%20classname%3D%22%7Bstyles.plainValue%7D%22%3E%3CSPAN%20class%3D%22hljs-type%22%3EN%2F%3CSPAN%20class%3D%22hljs-type%22%3EA%3C%2FSPAN%3E)%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D)%3B%0A%20%20%20%20%3CSPAN%20class%3D%22hljs-keyword%22%3Ereturn%20retVal%3B%0A%20%20%7D%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ESo%20that's%20all%20of%20the%20necessary%20code.%20Here's%20what%20the%20finished%20product%20looks%20like%2C%20compared%20to%20the%20original%20page%20properties%20web%20part.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22diff-screencap%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F270626i07AEE52E0096F0BA%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22diff-screencap%22%20alt%3D%22diff-screencap%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EThis%20web%20part%20is%20now%20officially%20apart%20of%20the%20PnP%20Web%20Parts%20repository%20and%20can%20be%20found%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fpnp%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Freact-advanced-page-properties%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%20I%20would%20love%20to%20hear%20about%20improvements%20you'd%20like%20to%20see%20and%20obviously%20you%20are%20more%20than%20welcome%20to%20contribute.%20I%20already%20have%20a%20bit%20of%20a%20list%20of%20things%20I'd%20love%20to%20see%20it%20do.%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-864613306%22%20id%3D%22toc-hId-864613306%22%20id%3D%22toc-hId-864613306%22%3EOther%20ideas%20for%20improvements%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3ECapsules%20to%20be%20linkable%20to%20either%20a%20search%20result%20page%20or%20a%20filtered%20view%20of%20site%20pages%20(we%20always%20get%20client%20requests%20for%20this)%3C%2FLI%3E%0A%3CLI%3ESupport%20for%20People%20fields%20(this%20is%20the%20only%20thing%20lacking%20from%20the%20original)%3C%2FLI%3E%0A%3CLI%3ESupport%20for%20Boolean%20fields%20(just%20need%20the%20right%20idea%20for%20proper%20display%2C%20really)%3C%2FLI%3E%0A%3CLI%3EStyling%20per%20property%20(ie.%20colorizing%20per%20property%20or%20something%20to%20that%20effect)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId--942841157%22%20id%3D%22toc-hId--942841157%22%20id%3D%22toc-hId--942841157%22%3EConclusion%3C%2FH2%3E%0A%3CP%3EHopefully%2C%20I've%20gotten%20you%20excited%20about%20Page%20Properties%20again%20and%20you've%20learned%20a%20little%20along%20the%20way%20around%20how%20the%20current%20Page%20Properties%20part%20might%20be%20doing%20what%20it%20does%20under%20the%20hood.%20Please%20consider%20contributing%20and%20feel%20free%20to%20reach%20out%20to%20me%20anytime.%20Thanks%20for%20your%20time!%3C%2FP%3E%0A%3CDIV%20class%3D%22ms-editor-squiggler%22%20style%3D%22color%3A%20initial%3B%20font%3A%20initial%3B%20font-feature-settings%3A%20initial%3B%20font-kerning%3A%20initial%3B%20font-optical-sizing%3A%20initial%3B%20font-variation-settings%3A%20initial%3B%20forced-color-adjust%3A%20initial%3B%20text-orientation%3A%20initial%3B%20text-rendering%3A%20initial%3B%20-webkit-font-smoothing%3A%20initial%3B%20-webkit-locale%3A%20initial%3B%20-webkit-text-orientation%3A%20initial%3B%20-webkit-writing-mode%3A%20initial%3B%20writing-mode%3A%20initial%3B%20zoom%3A%20initial%3B%20place-content%3A%20initial%3B%20place-items%3A%20initial%3B%20place-self%3A%20initial%3B%20alignment-baseline%3A%20initial%3B%20animation%3A%20initial%3B%20appearance%3A%20initial%3B%20aspect-ratio%3A%20initial%3B%20backdrop-filter%3A%20initial%3B%20backface-visibility%3A%20initial%3B%20background%3A%20initial%3B%20background-blend-mode%3A%20initial%3B%20baseline-shift%3A%20initial%3B%20block-size%3A%20initial%3B%20border-block%3A%20initial%3B%20border%3A%20initial%3B%20border-radius%3A%20initial%3B%20border-collapse%3A%20initial%3B%20border-end-end-radius%3A%20initial%3B%20border-end-start-radius%3A%20initial%3B%20border-inline%3A%20initial%3B%20border-start-end-radius%3A%20initial%3B%20border-start-start-radius%3A%20initial%3B%20inset%3A%20initial%3B%20box-shadow%3A%20initial%3B%20box-sizing%3A%20initial%3B%20break-after%3A%20initial%3B%20break-before%3A%20initial%3B%20break-inside%3A%20initial%3B%20buffered-rendering%3A%20initial%3B%20caption-side%3A%20initial%3B%20caret-color%3A%20initial%3B%20clear%3A%20initial%3B%20clip%3A%20initial%3B%20clip-path%3A%20initial%3B%20clip-rule%3A%20initial%3B%20color-interpolation%3A%20initial%3B%20color-interpolation-filters%3A%20initial%3B%20color-rendering%3A%20initial%3B%20color-scheme%3A%20initial%3B%20columns%3A%20initial%3B%20column-fill%3A%20initial%3B%20gap%3A%20initial%3B%20column-rule%3A%20initial%3B%20column-span%3A%20initial%3B%20contain%3A%20initial%3B%20contain-intrinsic-size%3A%20initial%3B%20content%3A%20initial%3B%20content-visibility%3A%20initial%3B%20counter-increment%3A%20initial%3B%20counter-reset%3A%20initial%3B%20counter-set%3A%20initial%3B%20cursor%3A%20initial%3B%20cx%3A%20initial%3B%20cy%3A%20initial%3B%20d%3A%20initial%3B%20display%3A%20block%3B%20dominant-baseline%3A%20initial%3B%20empty-cells%3A%20initial%3B%20fill%3A%20initial%3B%20fill-opacity%3A%20initial%3B%20fill-rule%3A%20initial%3B%20filter%3A%20initial%3B%20flex%3A%20initial%3B%20flex-flow%3A%20initial%3B%20float%3A%20initial%3B%20flood-color%3A%20initial%3B%20flood-opacity%3A%20initial%3B%20grid%3A%20initial%3B%20grid-area%3A%20initial%3B%20height%3A%200px%3B%20hyphens%3A%20initial%3B%20image-orientation%3A%20initial%3B%20image-rendering%3A%20initial%3B%20inline-size%3A%20initial%3B%20inset-block%3A%20initial%3B%20inset-inline%3A%20initial%3B%20isolation%3A%20initial%3B%20letter-spacing%3A%20initial%3B%20lighting-color%3A%20initial%3B%20line-break%3A%20initial%3B%20list-style%3A%20initial%3B%20margin-block%3A%20initial%3B%20margin%3A%20initial%3B%20margin-inline%3A%20initial%3B%20marker%3A%20initial%3B%20mask%3A%20initial%3B%20mask-type%3A%20initial%3B%20max-block-size%3A%20initial%3B%20max-height%3A%20initial%3B%20max-inline-size%3A%20initial%3B%20max-width%3A%20initial%3B%20min-block-size%3A%20initial%3B%20min-height%3A%20initial%3B%20min-inline-size%3A%20initial%3B%20min-width%3A%20initial%3B%20mix-blend-mode%3A%20initial%3B%20object-fit%3A%20initial%3B%20object-position%3A%20initial%3B%20offset%3A%20initial%3B%20opacity%3A%20initial%3B%20order%3A%20initial%3B%20origin-trial-test-property%3A%20initial%3B%20orphans%3A%20initial%3B%20outline%3A%20initial%3B%20outline-offset%3A%20initial%3B%20overflow-anchor%3A%20initial%3B%20overflow-wrap%3A%20initial%3B%20overflow%3A%20initial%3B%20overscroll-behavior-block%3A%20initial%3B%20overscroll-behavior-inline%3A%20initial%3B%20overscroll-behavior%3A%20initial%3B%20padding-block%3A%20initial%3B%20padding%3A%20initial%3B%20padding-inline%3A%20initial%3B%20page%3A%20initial%3B%20page-orientation%3A%20initial%3B%20paint-order%3A%20initial%3B%20perspective%3A%20initial%3B%20perspective-origin%3A%20initial%3B%20pointer-events%3A%20initial%3B%20position%3A%20initial%3B%20quotes%3A%20initial%3B%20r%3A%20initial%3B%20resize%3A%20initial%3B%20ruby-position%3A%20initial%3B%20rx%3A%20initial%3B%20ry%3A%20initial%3B%20scroll-behavior%3A%20initial%3B%20scroll-margin-block%3A%20initial%3B%20scroll-margin%3A%20initial%3B%20scroll-margin-inline%3A%20initial%3B%20scroll-padding-block%3A%20initial%3B%20scroll-padding%3A%20initial%3B%20scroll-padding-inline%3A%20initial%3B%20scroll-snap-align%3A%20initial%3B%20scroll-snap-stop%3A%20initial%3B%20scroll-snap-type%3A%20initial%3B%20shape-image-threshold%3A%20initial%3B%20shape-margin%3A%20initial%3B%20shape-outside%3A%20initial%3B%20shape-rendering%3A%20initial%3B%20size%3A%20initial%3B%20speak%3A%20initial%3B%20stop-color%3A%20initial%3B%20stop-opacity%3A%20initial%3B%20stroke%3A%20initial%3B%20stroke-dasharray%3A%20initial%3B%20stroke-dashoffset%3A%20initial%3B%20stroke-linecap%3A%20initial%3B%20stroke-linejoin%3A%20initial%3B%20stroke-miterlimit%3A%20initial%3B%20stroke-opacity%3A%20initial%3B%20stroke-width%3A%20initial%3B%20tab-size%3A%20initial%3B%20table-layout%3A%20initial%3B%20text-align%3A%20initial%3B%20text-align-last%3A%20initial%3B%20text-anchor%3A%20initial%3B%20text-combine-upright%3A%20initial%3B%20text-decoration%3A%20initial%3B%20text-decoration-skip-ink%3A%20initial%3B%20text-indent%3A%20initial%3B%20text-overflow%3A%20initial%3B%20text-shadow%3A%20initial%3B%20text-size-adjust%3A%20initial%3B%20text-transform%3A%20initial%3B%20text-underline-offset%3A%20initial%3B%20text-underline-position%3A%20initial%3B%20touch-action%3A%20initial%3B%20transform%3A%20initial%3B%20transform-box%3A%20initial%3B%20transform-origin%3A%20initial%3B%20transform-style%3A%20initial%3B%20transition%3A%20initial%3B%20user-select%3A%20initial%3B%20vector-effect%3A%20initial%3B%20vertical-align%3A%20initial%3B%20visibility%3A%20initial%3B%20-webkit-app-region%3A%20initial%3B%20border-spacing%3A%20initial%3B%20-webkit-border-image%3A%20initial%3B%20-webkit-box-align%3A%20initial%3B%20-webkit-box-decoration-break%3A%20initial%3B%20-webkit-box-direction%3A%20initial%3B%20-webkit-box-flex%3A%20initial%3B%20-webkit-box-ordinal-group%3A%20initial%3B%20-webkit-box-orient%3A%20initial%3B%20-webkit-box-pack%3A%20initial%3B%20-webkit-box-reflect%3A%20initial%3B%20-webkit-highlight%3A%20initial%3B%20-webkit-hyphenate-character%3A%20initial%3B%20-webkit-line-break%3A%20initial%3B%20-webkit-line-clamp%3A%20initial%3B%20-webkit-mask-box-image%3A%20initial%3B%20-webkit-mask%3A%20initial%3B%20-webkit-mask-composite%3A%20initial%3B%20-webkit-perspective-origin-x%3A%20initial%3B%20-webkit-perspective-origin-y%3A%20initial%3B%20-webkit-print-color-adjust%3A%20initial%3B%20-webkit-rtl-ordering%3A%20initial%3B%20-webkit-ruby-position%3A%20initial%3B%20-webkit-tap-highlight-color%3A%20initial%3B%20-webkit-text-combine%3A%20initial%3B%20-webkit-text-decorations-in-effect%3A%20initial%3B%20-webkit-text-emphasis%3A%20initial%3B%20-webkit-text-emphasis-position%3A%20initial%3B%20-webkit-text-fill-color%3A%20initial%3B%20-webkit-text-security%3A%20initial%3B%20-webkit-text-stroke%3A%20initial%3B%20-webkit-transform-origin-x%3A%20initial%3B%20-webkit-transform-origin-y%3A%20initial%3B%20-webkit-transform-origin-z%3A%20initial%3B%20-webkit-user-drag%3A%20initial%3B%20-webkit-user-modify%3A%20initial%3B%20white-space%3A%20initial%3B%20widows%3A%20initial%3B%20width%3A%20initial%3B%20will-change%3A%20initial%3B%20word-break%3A%20initial%3B%20word-spacing%3A%20initial%3B%20x%3A%20initial%3B%20y%3A%20initial%3B%20z-index%3A%20initial%3B%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2256651%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20page%20properties%20web%20part%20is%20good%2C%20but%20can%20we%20make%20it%20better%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20image-alt%3D%22add-to-page.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F270560iDA079B7067A84D2C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22add-to-page.png%22%20alt%3D%22add-to-page.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2256651%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHooks%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPage%20Details%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPnP%20Samples%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EReact%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESPFx%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWeb%20Parts%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2375881%22%20slang%3D%22en-US%22%3ERe%3A%20Improving%20the%20Page%20Properties%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2375881%22%20slang%3D%22en-US%22%3E%3CP%3EDo%20you%20think%20it%20would%20be%20possible%20to%20integrate%20SharePoint%20Multiline%20Text%20Fields%20to%20your%20extented%20Page%20Property%20WebPart%3F%3C%2FP%3E%3CP%3EThe%20Standard%20Page%20Property%20Webparts%20does%20not%20allow%20to%20display%20Multiline%20Text%20Columns...%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Apr 06 2021 02:30 PM
Updated by: