Skip to content

Commit fba8db8

Browse files
expiscornovusVesaJuvonen
authored andcommitted
Update building-simple-cmdset-with-dialog-api.md (SharePoint#1405)
As far as I know the IListViewCommandSetExecuteEventParameters interface doesn't have a commandId property. It should be the itemId property: https://docs.microsoft.com/en-us/javascript/api/sp-listview-extensibility/ilistviewcommandsetexecuteeventparameters
1 parent 44d03a4 commit fba8db8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ The default solution takes advantage of a new Dialog API, which can be used to s
221221
```typescript
222222
@override
223223
public onExecute(event: IListViewCommandSetExecuteEventParameters): void {
224-
switch (event.commandId) {
224+
switch (event.itemId) {
225225
case 'COMMAND_1':
226226
Dialog.alert(`Clicked ${strings.Command1}`);
227227
break;
@@ -387,4 +387,4 @@ Now you are ready to deploy the solution to a SharePoint site and have the `Cust
387387
## See also
388388
389389
- [Build your first Field Customizer extension](./building-simple-field-customizer.md)
390-
- [Overview of SharePoint Framework Extensions](../overview-extensions.md)
390+
- [Overview of SharePoint Framework Extensions](../overview-extensions.md)

0 commit comments

Comments
 (0)