Skip to content

Commit d9d8762

Browse files
KoenZomersVesaJuvonen
authored andcommitted
Adding missing instruction (SharePoint#1926)
Step 4 under 'Enhance the ListView Command Set rendering' was missing the instruction to add. Moreover with the current latest version the import is already present anyway, thus does not need to be added manually. Changed the instruction to validate that it is indeed present. Order of imports doesn't seem to matter according to my tests.
1 parent f96bf5e commit d9d8762

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/spfx/extensions/get-started/building-simple-cmdset-with-dialog-api.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,11 @@ The default solution takes advantage of a new Dialog API, which can be used to s
216216
217217
3. Open **HelloWorldCommandSet.ts** from the **src\extensions\helloWorld** folder.
218218
219-
4. Add the following import statement for the `Dialog` class from `@microsoft/sp-dialog` after the existing import statements.
219+
4. Ensure at the top of the file the following import statement is present for the `Dialog` class from `@microsoft/sp-dialog`. It should already be there, if not, add it.
220+
221+
```typescript
222+
import { Dialog } from '@microsoft/sp-dialog';
223+
```
220224

221225
5. Update the **onExecute** method as follows:
222226

0 commit comments

Comments
 (0)