Skip to content

Commit 75eaeb8

Browse files
Fix grammar, broken links, and outdated content in SPFx docs (#10723)
* Fix grammar, broken links, and outdated content in SPFx docs * Update links and improve wording in documentation --------- Co-authored-by: Andrew Connell <me@andrewconnell.com>
1 parent 1b8660a commit 75eaeb8

5 files changed

Lines changed: 51 additions & 49 deletions

File tree

docs/spfx/dynamic-data.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Connect SharePoint Framework components using dynamic data
33
description: High-level description on how to use dynamic data concept for connecting different SharePoint Framework components
4-
ms.date: 07/31/2020
4+
ms.date: 03/16/2026
55
ms.localizationpriority: high
66
---
77

@@ -16,9 +16,9 @@ You can connect two or more SharePoint Framework components together and exchang
1616
1717
## Expose data using dynamic data source
1818

19-
Dynamic data in the SharePoint Framework is based on the source-notification model. Components named as a dynamic data source, provide data and notify the SharePoint Framework when the data changes.
19+
Dynamic data in the SharePoint Framework is based on the source-notification model. Components acting as a dynamic data source provide data and notify the SharePoint Framework when the data changes.
2020

21-
Other components on the page can subscribe to notifications issued by a dynamic data source. The SharePoint Framework notifies the consumer component that the source has notified its data has changed. The consumer component then requests the data from the source component.
21+
Other components on the page can subscribe to notifications issued by a dynamic data source. The SharePoint Framework notifies the consumer component that the source data has changed. The consumer component then requests the data from the source component.
2222

2323
Every dynamic data source implements the `IDynamicDataCallables` interface.
2424

@@ -34,7 +34,7 @@ export default class EventsWebPart extends BaseClientSideWebPart<IEventsWebPartP
3434
/**
3535
* Currently selected event
3636
*/
37-
private _selectedEvent: IEvent;
37+
private _selectedEvent: IEvent | undefined;
3838

3939
/**
4040
* Event handler for selecting an event in the list
@@ -71,7 +71,7 @@ export default class EventsWebPart extends BaseClientSideWebPart<IEventsWebPartP
7171
* Return the current value of the specified dynamic data set
7272
* @param propertyId ID of the dynamic data set to retrieve the value for
7373
*/
74-
public getPropertyValue(propertyId: string): IEvent | ILocation {
74+
public getPropertyValue(propertyId: string): IEvent | ILocation | undefined {
7575
switch (propertyId) {
7676
case 'event':
7777
return this._selectedEvent;
@@ -155,7 +155,7 @@ The `getPropertyValue()` method returns the value for the particular type of dat
155155
156156
To register a component as a dynamic data source, call the `this.context.dynamicDataSourceManager.initializeSource()` method and pass the instance of the dynamic data source as a parameter. In the previous example, the web part itself implements the `IDynamicDataCallables` interface, which is why the `initializeSource()` method is called with `this` as its argument.
157157
158-
In the example code, the web part displays upcoming events in a list. Each time, the user selects an event from the list, the web part calls the `_eventSelected()` method. In that method, the web part assigns the selected event to the `_selectedEvent` class variable and issues a notification that the information about the selected event and location has changed by calling the `this.context.dynamicDataSourceManager.notifyPropertyChanged()` method passing the `id` of the definition that represents the changed data set.
158+
In the example code, the web part displays upcoming events in a list. Each time the user selects an event from the list, the web part calls the `_eventSelected()` method. In that method, the web part assigns the selected event to the `_selectedEvent` class variable and issues a notification that the information about the selected event and location has changed by calling the `this.context.dynamicDataSourceManager.notifyPropertyChanged()` method passing the `id` of the definition that represents the changed data set.
159159
160160
## Consume dynamic data in web parts
161161
@@ -164,10 +164,14 @@ Web parts can consume data exposed by dynamic data sources present on the page.
164164
```typescript
165165
import { DynamicProperty } from '@microsoft/sp-component-base';
166166
import {
167-
DynamicDataSharedDepth,
168-
IWebPartPropertiesMetadata,
167+
type IPropertyPaneConfiguration,
168+
PropertyPaneTextField,
169169
PropertyPaneDynamicFieldSet,
170170
PropertyPaneDynamicField
171+
} from '@microsoft/sp-property-pane';
172+
import {
173+
BaseClientSideWebPart,
174+
IWebPartPropertiesMetadata
171175
} from '@microsoft/sp-webpart-base';
172176
173177
/**
@@ -347,7 +351,7 @@ export interface IMapWebPartProps {
347351
}
348352
```
349353

350-
In this example, the address is a string, but other types of data such as boolean, numbers or objects are supported as well. Web part properties defined as `DynamicProperty` can retrieve their data from dynamic data sources or values provided directly in the web part properties. Because the same web part property can be used for both dynamic data sources and static values configured in web part properties, you don't need to define multiple web part properties what simplifies building versatile web parts.
354+
In this example, the address is a string, but other types of data such as boolean, numbers or objects are supported as well. Web part properties defined as `DynamicProperty` can retrieve their data from dynamic data sources or values provided directly in the web part properties. Because the same web part property can be used for both dynamic data sources and static values configured in web part properties, you don't need to define multiple web part properties, which simplifies building versatile web parts.
351355

352356
### Define the type of data stored in dynamic properties
353357

docs/spfx/enable-Microsoft-365-content-delivery-network.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Enable the Microsoft 365 CDN
33
description: Enable the Microsoft 365 CDN on your Microsoft 365 Tenant
4-
ms.date: 02/08/2021
4+
ms.date: 03/16/2026
55
ms.localizationpriority: medium
66
---
77
# Enable the Microsoft 365 CDN
@@ -15,29 +15,29 @@ In this article, you'll learn how to enable the Microsoft 365 CDN on your ShareP
1515

1616
## Options for managing the Microsoft 365 CDN
1717

18-
The Microsoft 365 CDN is managed using the command line and you can use PowerShell cmdlets or the cross-platform CLI for Microsoft 365 available through SharePoint PnP Community channels.
18+
The Microsoft 365 CDN is managed using the command line, and you can use PowerShell cmdlets or the cross-platform CLI for Microsoft 365 available through SharePoint PnP Community channels.
1919

2020
### Microsoft SharePoint Online Management Shell
2121

22-
The Microsoft 365 CDN is managed by tenant administrators by using the **Microsoft SharePoint Online Management Shell**, a PowerShell module from Microsoft used to manage your SharePoint Online subscription in Office 365.
22+
The Microsoft 365 CDN is managed by tenant administrators by using the **Microsoft SharePoint Online Management Shell**, a PowerShell module from Microsoft used to manage your SharePoint Online subscription in Microsoft 365.
2323

2424
Before using any of the cmdlets in the Microsoft SharePoint Online Management Shell module, you must first connect to SharePoint Online using the **Connect-SPOService** cmdlet. All CDN settings are managed using the ***-SPOTenantCdn** cmdlets.
2525

26-
Learn more here: [Microsoft SharePoint Online Management Shell](https://technet.microsoft.com/library/fp161372.aspx)
26+
Learn more here: [Microsoft SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online)
2727

2828
### CLI for Microsoft 365
2929

3030
The CLI for Microsoft 365 is a cross-platform command-line interface that can be used on any platform, including Windows, macOS, and Linux. The CLI implements the same calls made by the SharePoint Online Management Shell without using PowerShell.
3131

32-
Before using any of the commands in the CLI for Microsoft 365, you must first connect to Microsoft 365 tenant using the **m365 login** command.
32+
Before using any of the commands in the CLI for Microsoft 365, you must first connect to the Microsoft 365 tenant using the **m365 login** command.
3333

3434
Learn more here: [CLI for Microsoft 365](https://pnp.github.io/cli-microsoft365?utm_source=msft_docs&utm_medium=page&utm_campaign=Use+SharePoint+Online+tenant+properties)
3535

3636
[!INCLUDE [pnp-o365cli](../../includes/snippets/open-source/pnp-o365cli.md)]
3737

3838
## Get the Microsoft 365 CDN status
3939

40-
Get the current status of public CDN settings from the tenant level by executing the following commands one-by-one:
40+
Get the current status of public CDN settings from the tenant level by executing the following commands one by one:
4141

4242
# [Microsoft SPO Management Shell](#tab/msposh)
4343

@@ -93,7 +93,7 @@ In this tutorial, we create a specific document library named **CDN** to act as
9393

9494
### Add a new CDN origin
9595

96-
In this case, we're setting the origin as **\*/cdn**, which means that any relative folder with the name of **cdn** acts as a CDN origin.
96+
In this case, we're setting the origin as **\*/cdn**, which means that any relative folder named **cdn** acts as a CDN origin.
9797

9898
# [Microsoft SPO Management Shell](#tab/msposh)
9999

0 commit comments

Comments
 (0)