File tree 1 file changed +5
-1
lines changed
packages/react-topology/src/pipelines/components/nodes
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
+ import { TooltipProps } from '@patternfly/react-core' ;
2
3
import { css } from '@patternfly/react-styles' ;
3
4
import styles from '@patternfly/react-styles/css/components/Topology/topology-pipelines' ;
4
5
import topologyStyles from '@patternfly/react-styles/css/components/Topology/topology-components' ;
@@ -85,6 +86,8 @@ export interface TaskNodeProps {
85
86
disableTooltip ?: boolean ;
86
87
/** Tooltip to show on node hover */
87
88
toolTip ?: React . ReactNode ;
89
+ /** Tooltip properties to pass along to the node's tooltip */
90
+ toolTipProps ?: Omit < TooltipProps , 'content' > ;
88
91
/** Flag if the node has a 'when expression' */
89
92
hasWhenExpression ?: boolean ;
90
93
/** Size of the when expression indicator */
@@ -134,6 +137,7 @@ export const TaskNode: React.FC<TaskNodeProps> = ({
134
137
hover,
135
138
truncateLength = 14 ,
136
139
toolTip,
140
+ toolTipProps,
137
141
disableTooltip = false ,
138
142
selected,
139
143
onSelect,
@@ -475,7 +479,7 @@ export const TaskNode: React.FC<TaskNodeProps> = ({
475
479
{ ! toolTip || disableTooltip ? (
476
480
renderTask ( )
477
481
) : (
478
- < Tooltip position = "bottom" enableFlip = { false } content = { toolTip } >
482
+ < Tooltip position = "bottom" enableFlip = { false } { ... ( toolTipProps ?? { } ) } content = { toolTip } >
479
483
{ renderTask ( ) }
480
484
</ Tooltip >
481
485
) }
You can’t perform that action at this time.
0 commit comments