mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
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:
committed by
GitHub
parent
6fe8f5257f
commit
7a22da68e6
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user