File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,7 @@ const textLayout = {
14
14
} ,
15
15
} ;
16
16
17
- export interface DefaultNodeElementProps extends CustomNodeElementProps {
18
- onNodeClick : SyntheticEventHandler ;
19
- onNodeMouseOver : SyntheticEventHandler ;
20
- onNodeMouseOut : SyntheticEventHandler ;
21
- }
17
+ export interface DefaultNodeElementProps extends CustomNodeElementProps { }
22
18
23
19
const DefaultNodeElement : React . FunctionComponent < DefaultNodeElementProps > = ( {
24
20
nodeDatum,
Original file line number Diff line number Diff line change @@ -54,6 +54,18 @@ export interface CustomNodeElementProps {
54
54
* label is clicked instead of the node itself.
55
55
*/
56
56
toggleNode : ( ) => void ;
57
+ /**
58
+ * The `onNodeClick` handler defined for `Tree` (if any).
59
+ */
60
+ onNodeClick : SyntheticEventHandler ;
61
+ /**
62
+ * The `onNodeMouseOver` handler defined for `Tree` (if any).
63
+ */
64
+ onNodeMouseOver : SyntheticEventHandler ;
65
+ /**
66
+ * The `onNodeMouseOut` handler defined for `Tree` (if any).
67
+ */
68
+ onNodeMouseOut : SyntheticEventHandler ;
57
69
}
58
70
59
71
export type RenderCustomNodeElementFn = ( rd3tNodeProps : CustomNodeElementProps ) => JSX . Element ;
You can’t perform that action at this time.
0 commit comments