Skip to content

Commit 9e7f048

Browse files
committed
Added additional actions to ActivityControlWidget
1 parent 3580f3f commit 9e7f048

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
99
### Added
1010

1111
- Extended existing height and readOnly props from `CodeEditorProps` to `AutoSuggestionProps` & `ExtendedCodeEditorProps` to be configurable from `<CodeAutocompleteField />`
12+
- Added additional actions to `<ActivityControlWidget />`
1213

1314
## [24.3.0] - 2025-06-05
1415

src/cmem/ActivityControl/ActivityControlWidget.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ export interface ActivityControlWidgetProps extends TestableComponent {
8181
* execution timer messages for waiting and running times.
8282
*/
8383
timerExecutionMsg?: JSX.Element | null;
84+
/**
85+
* additional actions that can serve as a complex component, positioned between the default actions and the context menu
86+
*/
87+
additionalActions?: React.ReactElement<unknown>[];
8488
}
8589

8690
interface IActivityContextMenu extends TestableComponent {
@@ -115,6 +119,7 @@ export function ActivityControlWidget(props: ActivityControlWidgetProps) {
115119
progressSpinner,
116120
activityActions,
117121
activityContextMenu,
122+
additionalActions,
118123
small,
119124
border,
120125
hasSpacing,
@@ -194,6 +199,7 @@ export function ActivityControlWidget(props: ActivityControlWidgetProps) {
194199
/>
195200
);
196201
})}
202+
{additionalActions}
197203
{activityContextMenu && activityContextMenu.menuItems.length > 0 && (
198204
<ContextMenu
199205
data-test-id={activityContextMenu["data-test-id"]}

0 commit comments

Comments
 (0)