Skip to content

Commit ad72920

Browse files
authored
Update build-a-hello-world-web-part.md
1 parent 91bf0a7 commit ad72920

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/spfx/web-parts/get-started/build-a-hello-world-web-part.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Notice that we are performing an HTML escape on the property's value to ensure a
222222

223223
Let's now add a few more properties to the property pane: a check box, a drop-down list, and a toggle. We first start by importing the respective property pane fields from the framework.
224224

225-
1. Scroll to the top of the file and add the following to the import section from `@microsoft/sp-webpart-base`:
225+
1. Scroll to the top of the file and add the following to the import section from `@microsoft/sp-property-pane`:
226226

227227
```typescript
228228
PropertyPaneCheckbox,
@@ -234,13 +234,12 @@ Let's now add a few more properties to the property pane: a check box, a drop-do
234234

235235
```typescript
236236
import {
237-
BaseClientSideWebPart,
238237
IPropertyPaneConfiguration,
239238
PropertyPaneTextField,
240239
PropertyPaneCheckbox,
241240
PropertyPaneDropdown,
242241
PropertyPaneToggle
243-
} from '@microsoft/sp-webpart-base';
242+
} from '@microsoft/sp-property-pane';
244243
```
245244

246245
2. Update the web part properties to include the new properties. This maps the fields to typed objects.
@@ -407,4 +406,4 @@ Congratulations on getting your first Hello World web part running!
407406
Now that your web part is running, you can continue building out your Hello World web part in the next topic, [Connect your web part to SharePoint](./connect-to-sharepoint.md). You will use the same Hello World web part project and add the ability to interact with SharePoint List REST APIs. Notice that the `gulp serve` command is still running in your console window (or in Visual Studio Code if you are using that as editor). You can continue to let it run while you go to the next article.
408407

409408
> [!NOTE]
410-
> If you find an issue in the documentation or in the SharePoint Framework, please report that to SharePoint engineering by using the [issue list at the sp-dev-docs repository](https://github.com/SharePoint/sp-dev-docs/issues) or by adding a comment to this article. Thanks for your input in advance.
409+
> If you find an issue in the documentation or in the SharePoint Framework, please report that to SharePoint engineering by using the [issue list at the sp-dev-docs repository](https://github.com/SharePoint/sp-dev-docs/issues) or by adding a comment to this article. Thanks for your input in advance.

0 commit comments

Comments
 (0)