-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d8d775
commit 99a12be
Showing
12 changed files
with
410 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
packages/ui/src/components/Visualization/Custom/Group/Group.models.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
import type { ElementModel, GraphElement, DefaultGroup as TopologyDefaultGroup } from '@patternfly/react-topology'; | ||
import type { | ||
ElementModel, | ||
GraphElement, | ||
DefaultGroup as TopologyDefaultGroup, | ||
WithDndDropProps, | ||
} from '@patternfly/react-topology'; | ||
import { CanvasNode } from '../../Canvas'; | ||
|
||
type DefaultGroupProps = Parameters<typeof TopologyDefaultGroup>[0]; | ||
export interface CustomGroupProps extends DefaultGroupProps { | ||
export interface CustomGroupProps extends DefaultGroupProps, WithDndDropProps { | ||
element: GraphElement<ElementModel, CanvasNode['data']>; | ||
/** Toggle node collapse / expand */ | ||
onCollapseToggle?: () => void; | ||
hover?: boolean; | ||
droppable?: boolean; | ||
canDrop?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.