diff --git a/packages/demo-app-ts/src/demos/topologyPackageDemo/DemoGroup.tsx b/packages/demo-app-ts/src/demos/topologyPackageDemo/DemoGroup.tsx index 7116ccc7..34c2a8a7 100644 --- a/packages/demo-app-ts/src/demos/topologyPackageDemo/DemoGroup.tsx +++ b/packages/demo-app-ts/src/demos/topologyPackageDemo/DemoGroup.tsx @@ -51,7 +51,8 @@ const DemoGroup: React.FunctionComponent = ({ element, onContext return ( void; /** Flag indicating that the context menu for the node is currently open */ contextMenuOpen?: boolean; + /** Hide context menu kebab for the group */ + hideContextMenuKebab?: boolean; /** Flag indicating whether to use hull layout or rect layout for expanded groups. Defaults to hull (true) */ hulledOutline?: boolean; } diff --git a/packages/module/src/components/groups/DefaultGroupCollapsed.tsx b/packages/module/src/components/groups/DefaultGroupCollapsed.tsx index 0eff33ae..5711fc8b 100644 --- a/packages/module/src/components/groups/DefaultGroupCollapsed.tsx +++ b/packages/module/src/components/groups/DefaultGroupCollapsed.tsx @@ -32,6 +32,7 @@ type DefaultGroupCollapsedProps = { label?: string; // Defaults to element.getLabel() secondaryLabel?: string; showLabel?: boolean; // Defaults to true + hideContextMenuKebab?: boolean; labelPosition?: LabelPosition; // Defaults to bottom truncateLength?: number; // Defaults to 13 labelIconClass?: string; // Icon to show in label @@ -72,6 +73,7 @@ const DefaultGroupCollapsed: React.FunctionComponent dropTarget, onContextMenu, contextMenuOpen, + hideContextMenuKebab, dragging, labelPosition, badge, @@ -174,6 +176,7 @@ const DefaultGroupCollapsed: React.FunctionComponent labelIconPadding={labelIconPadding} onContextMenu={onContextMenu} contextMenuOpen={contextMenuOpen} + hideContextMenuKebab={hideContextMenuKebab} hover={isHover || labelHover} actionIcon={collapsible ? : undefined} onActionIconClick={() => onCollapseChange(element, false)} diff --git a/packages/module/src/components/groups/DefaultGroupExpanded.tsx b/packages/module/src/components/groups/DefaultGroupExpanded.tsx index 39e7d2a1..e3ce10b8 100644 --- a/packages/module/src/components/groups/DefaultGroupExpanded.tsx +++ b/packages/module/src/components/groups/DefaultGroupExpanded.tsx @@ -32,6 +32,7 @@ type DefaultGroupExpandedProps = { secondaryLabel?: string; showLabel?: boolean; // Defaults to true showLabelOnHover?: boolean; + hideContextMenuKebab?: boolean; truncateLength?: number; // Defaults to 13 badge?: string; badgeColor?: string; @@ -128,6 +129,7 @@ const DefaultGroupExpanded: React.FunctionComponent = dropTarget, onContextMenu, contextMenuOpen, + hideContextMenuKebab, dragging, dragNodeRef, badge, @@ -270,6 +272,7 @@ const DefaultGroupExpanded: React.FunctionComponent = labelIconPadding={labelIconPadding} onContextMenu={onContextMenu} contextMenuOpen={contextMenuOpen} + hideContextMenuKebab={hideContextMenuKebab} hover={isHover || labelHover} actionIcon={collapsible ? : undefined} onActionIconClick={() => onCollapseChange(element, true)}