Skip to content

Commit ac45aea

Browse files
panjkovVesaJuvonen
authored andcommitted
Update building-simple-cmdset-with-dialog-api.md (SharePoint#2956)
Clean up section 'Enhance the ListView Command Set rendering' as Dialog Framework is referenced in the project and included in the class file,
1 parent 4768be9 commit ac45aea

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,9 @@ You cannot currently use the local Workbench to test SharePoint Framework Extens
225225

226226
The default solution takes advantage of a new Dialog API, which can be used to show modal dialogs easily from your code. In the following steps, we'll slightly modify the default experience to demonstrate Dialog API use cases.
227227

228-
1. Return to the console, and execute the following command to include the Dialog API in our solution.
228+
1. Open **HelloWorldCommandSet.ts** from the **src\extensions\helloWorld** folder in Visual Studio Code (or your preferred editor).
229229

230-
2. Return to Visual Studio Code (or your preferred editor).
231-
232-
3. Open **HelloWorldCommandSet.ts** from the **src\extensions\helloWorld** folder.
233-
234-
4. Update the **onExecute** method as follows:
230+
2. Update the **onExecute** method as follows:
235231

236232
```typescript
237233
@override
@@ -251,13 +247,13 @@ The default solution takes advantage of a new Dialog API, which can be used to s
251247
}
252248
```
253249

254-
5. In your console window, ensure that you do not have any exceptions. If you do not already have the solution running in localhost, execute the following command:
250+
3. In your console window, ensure that you do not have any exceptions. If you do not already have the solution running in localhost, execute the following command:
255251

256252
```
257253
gulp serve
258254
```
259255

260-
6. Accept the loading of debug manifests by selecting **Load debug scripts** when prompted.
256+
4. Accept the loading of debug manifests by selecting **Load debug scripts** when prompted.
261257

262258
![Accept loading debug scripts](../../../images/ext-com-accept-debug-scripts.png)
263259

0 commit comments

Comments
 (0)