Skip to content
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Adding support for web part Top Actions
description: Top Actions is a SharePoint Framework feature that allows web part developers to add commands to a web part's toolbar.
ms.date: 04/12/2023
ms.date: 11/09/2025
ms.localizationpriority: high
---
# Adding support for web part Top Actions
Expand Down Expand Up @@ -55,7 +55,7 @@ export default class HelloWorldWebPart extends BaseClientSideWebPart<IHelloWorld
public getTopActionsConfiguration(): ITopActions | undefined {
return {
topActions: [],
onExecute: (actionName: string, newValue: any): void { }
onExecute: (actionName: string, newValue: any): void => { }
};
}

Expand Down Expand Up @@ -104,7 +104,7 @@ return {
}
}
],
onExecute: (actionName: string, newValue: any): void { }
onExecute: (actionName: string, newValue: any): void => { }
}
```

Expand Down Expand Up @@ -137,7 +137,7 @@ return {
}
}
],
onExecute: (actionName: string, newValue: any): void { }
onExecute: (actionName: string, newValue: any): void => { }
}
```

Expand Down