Skip to content

Commit dae52f0

Browse files
Merge pull request SharePoint#8025 from rob-windsor/rw-spfx114-build-first-ext-part-2
Update Use page placeholders from Application Customizer (Hello World part 2) for SPFx 1.14
2 parents 4e8f3a6 + 48242b7 commit dae52f0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
42.4 KB
Loading

docs/spfx/extensions/get-started/using-page-placeholder-with-extensions.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Use page placeholders from Application Customizer (Hello World part 2)
33
description: Extend your Hello World extension to take advantage of page placeholders by using SharePoint Framework (SPFx) Extensions.
4-
ms.date: 06/22/2020
4+
ms.date: 06/07/2022
55
ms.prod: sharepoint
66
ms.custom: scenarios:getting-started
77
---
@@ -139,15 +139,14 @@ Notice that you're requesting a well-known placeholder by using the correspondin
139139
8. Update the `onInit()` method code as follows:
140140

141141
```typescript
142-
@override
143142
public onInit(): Promise<void> {
144143
Log.info(LOG_SOURCE, `Initialized ${strings.Title}`);
145144

146145
// Wait for the placeholders to be created (or handle them being changed) and then
147146
// render.
148147
this.context.placeholderProvider.changedEvent.add(this, this._renderPlaceHolders);
149148

150-
return Promise.resolve<void>();
149+
return Promise.resolve();
151150
}
152151
```
153152

0 commit comments

Comments
 (0)