feat(web/context): mouse enter and mouse leave events (#218)

* feat(web/context): mouse enter and mouse leave events

* chore(web/context): condense into one function for onHover

* feat(resource/context): cache last hovered option
This commit is contained in:
masonschafercodes
2023-02-08 04:05:30 -05:00
committed by GitHub
parent 6fe8f5257f
commit 7a22da68e6
3 changed files with 64 additions and 23 deletions

View File

@@ -6,6 +6,7 @@ interface ContextMenuItem {
icon?: IconName | [IconPrefix, IconName];
iconColor?: string;
onSelect?: (args: any) => void;
onHover?: (hoverState: boolean, args: any) => void;
arrow?: boolean;
description?: string;
metadata?: string | { [key: string]: any } | string[];