Skip to content

Commit 5d113b7

Browse files
I-question-thisVesaJuvonen
authored andcommitted
Updates reference to get propertyPaneSettings (SharePoint#2790)
The getter of the property propertyPaneSettings was changed to a method named getPropertyPaneConfiguration. Additionally, the getter returned a IPropertyPaneSettings type, while the new method returns a IPropertyPaneConfiguration type.
1 parent 052c5c7 commit 5d113b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/spfx/web-parts/guidance/use-cascading-dropdowns-in-web-part-properties.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ You will build a web part that displays list items from a selected SharePoint li
8989
}
9090
```
9191

92-
4. Update **propertyPaneSettings** to:
92+
4. Update **getPropertyPaneConfiguration** to:
9393

9494
```typescript
9595
export default class ListItemsWebPart extends BaseClientSideWebPart<IListItemsWebPartProps> {
@@ -223,12 +223,12 @@ At this point, a user specifies which list the web part should use by manually e
223223
}
224224
```
225225

226-
4. Change the **propertyPaneSettings** getter to use the dropdown control to render the **listName** property:
226+
4. Change the **getPropertyPaneConfiguration** method to use the dropdown control to render the **listName** property:
227227

228228
```typescript
229229
export default class ListItemsWebPart extends BaseClientSideWebPart<IListItemsWebPartProps> {
230230
// ...
231-
protected get propertyPaneSettings(): IPropertyPaneSettings {
231+
protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration {
232232
return {
233233
pages: [
234234
{
@@ -477,7 +477,7 @@ Similar to how users can select a list by using a dropdown, they should be able
477477
}
478478
```
479479

480-
3. Change the **propertyPaneSettings** getter to use the dropdown control to render the **itemName** property.
480+
3. Change the **getPropertyPaneConfiguration** method to use the dropdown control to render the **itemName** property.
481481

482482
```typescript
483483
export default class ListItemsWebPart extends BaseClientSideWebPart<IListItemsWebPartProps> {

0 commit comments

Comments
 (0)