Skip to content

Commit 4dc0192

Browse files
svarukalaVesaJuvonen
authored andcommitted
Fixed a typo and corrected method name in step 6 (SharePoint#2083)
Fixed mis-spelled word bild to build Step 6 says that the variables can be scoped within onRender method. But in SPFx extensions we do not recommend using OnRender method and especially in this particular sample it supposed to _renderPlaceHolders method.
1 parent daf2c81 commit 4dc0192

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ Notice that you're requesting a well-known placeholder by using the correspondin
135135
private _bottomPlaceholder: PlaceholderContent | undefined;
136136
```
137137
138-
139138
8. Update the `onInit` method code as follows:
140139
141140
```typescript
@@ -238,7 +237,7 @@ Notice that you're requesting a well-known placeholder by using the correspondin
238237
* Extension code should not assume that the expected placeholder is available.
239238
* The code expects custom properties called `Top` and `Bottom`. If the properties exist, they render inside the placeholders.
240239
* Notice that the code path for both the top and bottom placeholders is almost identical. The only differences are the variables used and the style definitions.
241-
* It is possible to use the class names defined in the style sheet directly but it is not recommended. In case no style sheet reference defined in the ```styles``` variable is found in the code, the style sheet won't get added to the page. This is because unused references will get removed during bild process.
240+
* It is possible to use the class names defined in the style sheet directly but it is not recommended. In case no style sheet reference defined in the ```styles``` variable is found in the code, the style sheet won't get added to the page. This is because unused references will get removed during build process.
242241
243242
10. Add the following method after the `_renderPlaceHolders` method. In this case, you simply output a console message when the extension is removed from the page.
244243

0 commit comments

Comments
 (0)